Text overwriting itself in non wrapping field

J. Landman Gay jacque at hyperactivesw.com
Fri Mar 18 15:07:26 EDT 2022


On 3/18/22 6:02 AM, David V Glasgow via use-livecode wrote:
> However, looking more closely there are 3 visible characters where cr should be.   They are â9u except 9u is constant and the first character is almost always there, but varies wildly.  Often an underscore but also accented a, e or u.  Even more weirdly, if I search the field for ‘9u', several lines are found, but not any in the mutant line.
> 
> And yet more weirdly again, when the line is displayed in a field with wrap true, the weird three characters appear at the beginning of ‘new lines’ except they are not actually new lines because they highlight as a single block.  An invisible form feed?  or something else between 9 and u  that a wrapping field decides is a wrap point but confuses the hell out of a non-wrapping field?

The text came from a server, right? This sounds like it may be a text encoding issue. It's 
likely UTF8, so try textDecode(tText,"UTF8") and see if that resolves it.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com


More information about the use-livecode mailing list