<div dir="ltr">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 <span style="color:rgb(0,0,0);font-family:sans-serif;font-size:12.7px">lazutf8 unit's </span><font color="#000000" face="sans-serif"><span style="font-size:12.7px">UTF8ToUTF16 routine on the SetAttribute and UTF16ToUTF8 on the GetAttribute:</span></font><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px"><br></span></font></div><div><font color="#000000" face="sans-serif"><div><span style="font-size:12.7px">    TDOMElement(childNode).SetAttribute('value', UTF8ToUTF16(s));</span></div><div><span style="font-size:12.7px">    s2 := UTF16ToUTF8(TDOMElement(childNode).GetAttribute('value'));</span></div></font><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px">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 versions though.</span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px">Thanks,</span></font></div><div><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px"><br></span></font></div><div><font color="#000000" face="sans-serif"><span style="font-size:12.7px">-SG<br></span></font><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">--<br>Seth Grover<br><br>
Be kind to all of your neighbors<br>
Because they're just like you.<br>
And you're nothing special<br>
Unless they are too.<br></div></div></div></div></div>
<div class="gmail_quote"><br></div></div></div></div></div></div>