Help with Unicode Text

Kojima Kenji index at kenjikojima.com
Mon Mar 28 15:03:49 EST 2005


Dan,

> put field 2 into jData --field 2 contains Japanese text
> replace cr with "<cr>" in jData
> put jData into url ("file:/Users/user1/Desktop/jappTest.txt")
>
> Then, do this:
>
> put url ("file:/Users/user1/Desktop/jappTest.txt") into jData
> replace "<cr>" with cr in jData
> set the unicodeText of field 2 to jData

Try this

   put uniDecode(the unicodeText of fld 2, "Japanese") into jData
   replace cr with "<cr>" in jData
   put jData into url ("file:" &specialFolderPath(Desktop)& 
"/jappTest.txt")

then, do this:

    put url ("file:" &specialFolderPath(Desktop)& "/jappTest.txt") into 
jData
   replace "<cr>" with cr in jData
   set the unicodetext of fld 2 to uniencode(jData,"japanese")

--
Kenji Kojima
http://www.kenjikojima.com/





More information about the use-livecode mailing list