[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: code page
- From: Sam Roberts <vieuxtech@...>
- Date: Tue, 12 May 2009 14:40:28 -0700
On Tue, May 12, 2009 at 2:07 PM, Marco Antonio Abreu
> No problem Ignacio. Thanks anyway.
> I suppose the encode problem is resolved. I put the 'N' flag in front of the
> strings. My problem now is that the strings are beeing truncated from the
> SqlServer, just in the Fetch method of LuaSQL. When a field value has one
> accented char, it truncate the last one ('Flávia' comes like 'Fl??vi' - ??
> are especial chars), if the text has two accented chars it has the last two
> chars cutted and so on...
It sounds like some code "knows" how many chars there are... and that
it is assuming there is one byte per character, and truncating a
string's byte-count to the character count.