[EMAIL PROTECTED] wrote:
yeah that is what i mean. Where and how i put the encoding? (the declaration
or what ever in my line code..)
The first line of an XML file is the XML declaration.
You can declare an encoding there:
<?xml version="1.0" encoding="UTF-8"?>
UTF-8 ist the default encoding, so the two declarations are
Every XML parser has to understand UTF-8 and UTF-16, most
understand other encodings, like ISO-8859-1 (Latin-1).
and how i know the type of encoding that i use?
There is no way to diagnose this remotely, you have to
know this by yourself. Most editors only know "native
encoding", some of the more recent provide for choosing
an encoding while saving.
actually i want to use Thai
encoding, but i don't know from where i get the encoding type for the Thai.
In general, you don't have to. If you have an editor which
natively supports entering Thai characters, check the
documentation or whatever configuration settings the editor
has for the encoding used. Set the encoding name in the
XML declaration and hope the XML parser understands it (if
not, you'll get an error). If you can choose the encoding,
prefer UTF-8 or UTF-16.
If you have an ASCII editor, you can use XML character references
for entering Thai characters. You just wont see Thai glyphs on
the screen. The Thai characters start at Unicode code point
U+0E00, you can use &0x0E01; etc.