Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Russian characters issue

Status
Not open for further replies.

ionutdinulescu

Programmer
Jun 11, 2002
59
GB
I have an xml like this below:
<?xml version=&quot;1.0&quot; encoding=&quot;koi8-r&quot;?>
<Countries>
<Country Name='Russia' CharSet='204'>
<Screen Name='Welcome screen'>
<Control Name='lblw1' type='Tlabel' Visible='1' left='20' top='20' width='464' caption='óìíîå ïðîãðàììíîå ïðèëîæåíèå, ïîìîãàþùåå âàì â ïîâñåäíåâíîì óïðàâëåíèè çàðïëàòàìè. HRA ïîçâîëÿåò âàì îòñëåæèâàòü èçìåíåíèÿ â òàêîì êîíôèäåöèàëüíîì âîïðîñå, êàê Òâåðäûé îêëàä è Âàðüèðóåìûå âîçíàãðàæäåíèÿ '/>..........................

This can be showed well in a web browser, but the following Delphi code:
(t as TLabel).Font.Charset:= strtoint(country.Attributes['CharSet']);
(t as TLabel).Caption:=control.Attributes['caption'];

doesn't show the right russian characters, but the strange characters above, although the charset is set right

How can I solve this problem ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top