Re: [fpc-pascal] DOM and UTF-8 widestring conversion

2016-11-21 Thread Seth Grover
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 unit's UTF8ToUTF16 routine on the SetAttribute and UTF16ToUTF8 on the GetAttribute: TDOMElement(childNode).SetAttribute('value', UTF8ToUTF16(s)); s2

[fpc-pascal] DOM and UTF-8 widestring conversion

2016-11-21 Thread Seth Grover
I'm hoping somebody could point me to the specific change (mantis bug #, revision #, user changes wiki page link, whatever) between 2.6.4 and 3.0.0 that fixes this problem I was running into. Given this sample program: === program Project1; {$mode objfpc}{$H+}