Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at


An unsigned 16-bit type, like char in Java or the "characters" of a JavaScript string defined in /mozilla/xpcom/base/nscore.h.


#if defined(NS_WIN32)
  typedef wchar_t PRUnichar;
  typedef PRUInt16 PRUnichar;

Document Tags and Contributors

 Contributors to this page: teoli, Jorend, Kennyluck
 Last updated by: teoli,