Hi, Kojima! Your script is perfect!
Thank you for your help! _.__ ._ _. ._ ._.__ .. ._._. _._ . ..__ ._.__ ._._. ___. .._ __.. __ .._ Takashi Yoshino http://www.wakayama-u.ac.jp/~yoshino/lab/ Tel: +81-73-457-8441 On 2012/04/09, at 21:58, Kenji Kojima wrote: > Hi Takashi-san, > > >>> 2. set the unicode text >>> >>> Here is my script. >>> >>> on mouseUp >>> >>> put "A1.txt" into theFileName >>> put AbsolutePathFromStack(theFileName) into theFullPath >>> >>> open file theFullPath >>> read from file theFullPath until EOF >>> set the unicodeText of fld "A1" to it >>> close file theFullPath >>> >>> end mouseUp >>> >>> I want read some Japanese from a file. > > > If your Japanese text file is "UTF 8" > > on mouseUp > answer file "" > put url ("file:" & it) into tUrl > set the unicodeText of field 1 to uniencode(tUrl, utf8) > end mouseUp > > > best, > -- > Kenji Kojima / 小島健治 > http://www.kenjikojima.com/ > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode