Click to See Complete Forum and Search --> : Changing the code page to unicode


Reham
12-23-2002, 06:07 AM
Hi All

I need to write in the XML file that the codepage is unicode

How can I write this?

Charles
12-23-2002, 06:37 AM
XML, by default, uses the utf-16 encoding but you can use the encoding attribute in the xml processing instruction in the prolog:

<?xml version="1.0" encoding="utf-16"?>
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="iso-8859-1"?>

The encodings 'utf-16', 'utf-8' and 'iso-8859-1' all use the Unicode character set. And 'is0-8859-1' is a subset of 'utf-8'.

Reham
12-23-2002, 07:05 AM
wHAT ARE THE DIFFERENCE BETWEEN THE 3 CASES

Charles
12-23-2002, 07:13 AM
Read http://www.cl.cam.ac.uk/~mgk25/unicode.html and you will know far, far more than you want about the subject.