[fpc-pascal] DOM and UTF-8 widestring conversion
sethdgrover at gmail.com
Mon Nov 21 18:14:24 CET 2016
After playing around some more with my example, I was able to get it to
work in 2.6.4 (without using the cwstring unit) by using the lazutf8
routine on the SetAttribute and UTF16ToUTF8 on the GetAttribute:
s2 := UTF16ToUTF8(TDOMElement(childNode).GetAttribute('value'));
So for now I have a workaround until we're able to upgrade to the 3.0
compiler and use cwstring and the correct implicit conversions. I'd still
welcome any input to help me understand the difference between the two
Be kind to all of your neighbors
Because they're just like you.
And you're nothing special
Unless they are too.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal