Decode UTF-8 in variable ?
Mark Schonewille
m.schonewille at economy-x-talk.com
Thu Jun 20 04:55:12 EDT 2013
Hi Ludovic,
You don't need to set the text to a unicode string to be able to use it.
What you are doing seems correct, although you don't say if you're
storing the value returned in a variable:
put uniDecode(uniEncode(myTxt,"UTF8")) into myAscii
This should work. What is the source of the text? Is it something that
can actually be represented as ASCII?
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other
colour spaces. http://www.color-converter.com
Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi
Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/
On 6/20/2013 08:07, Ludovic Thébault wrote:
> Hello,
>
> I need to get datas from sqlite (in UTF-8) and convert it in ASCII for treatment, but i don't need to put it in a field..
> I try unidecode(uniencode(myTXT, "utf8")) and many others solutions with no result.
>
> We need to pass by a field ?
> with this command : set the unicodetext of field "xxx" to .. ?
>
> Thanks
More information about the use-livecode
mailing list