ionutdinulescu
Programmer
I have an xml like this below:
<?xml version="1.0" encoding="koi8-r"?>
<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 ?
<?xml version="1.0" encoding="koi8-r"?>
<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 ?