W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2002

Re: UTF8 without tempfiles

From: Charles Reitzel <creitzel@rcn.com>
Date: Mon, 11 Nov 2002 09:27:28 -0500
Message-Id: <>
To: "Moshe Plotkin" <mplotkin@hotmail.com>
Cc: <html-tidy@w3.org>

Hi Moshe,

wchar_t is usually UTF16.  What platform are you on?  It helps to figure 
out if you should use Little or Big Endian unicode (UTF16LE and UTF16BE, 
respectively).  If you can manage to save your documents with a byte-order 
mark (two bytes at the beginning of the file that indicate the byte order), 
you can specify plain UTF16.

For example, Intel (Windows and Linux) are LE.  Sparc (Solaris) and PowerPC 
(Mac, IBM AIX) are BE.  Alpha (Linux) can be either, but is usually LE.

take it easy,

At 01:22 PM 11/10/2002 -0800, Moshe Plotkin wrote:
>Can someone please send me a very simple example of using TidyLib with 
>UTF8 strings.
>I have the data in a wchar_t* and would like to return a wchar_t*
>thank you verry much
Received on Monday, 11 November 2002 09:26:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:52 UTC