I can not type any Chinese in Script Editor !

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jasonshow
Posts: 7
Joined: Fri Jan 17, 2014 9:23 pm

I can not type any Chinese in Script Editor !

Post by jasonshow » Fri Jan 17, 2014 9:28 pm

all the chinese words in editor, will become ??? when open it next time.
I'v set the chinese font for editor,but still not work.

how can I fix it,thanks a lot.

makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

Re: I can not type any Chinese in Script Editor !

Post by makeshyft » Fri Jan 17, 2014 11:13 pm

Unicode characters don't work in the script editor. You need to create some workarounds using unicode encode and decode functions. Sorry bro.... http://newsletters.livecode.com/august/ ... etter4.php
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

Re: I can not type any Chinese in Script Editor !

Post by makeshyft » Fri Jan 17, 2014 11:24 pm

Version 7 will have full Unicode support built in! (thats in the roadmap at least)
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

jasonshow
Posts: 7
Joined: Fri Jan 17, 2014 9:23 pm

Re: I can not type any Chinese in Script Editor !

Post by jasonshow » Sat Jan 18, 2014 4:49 am

when will we get ver. 7 ?

I'm running a new project,I need to know I can use livecode.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: I can not type any Chinese in Script Editor !

Post by Simon » Sat Jan 18, 2014 7:20 am

Hi jasonshow,
Have you looked at this lesson?
http://lessons.runrev.com/s/lessons/m/4 ... 41-unicode

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jasonshow
Posts: 7
Joined: Fri Jan 17, 2014 9:23 pm

Re: I can not type any Chinese in Script Editor !

Post by jasonshow » Sat Jan 18, 2014 8:09 am

thanks,Simon !

but I need 100% unicode support,just like you key english.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: I can not type any Chinese in Script Editor !

Post by Simon » Sat Jan 18, 2014 8:51 am

Hi jasonshow,
just as a check, could you post a line of code showing how you'd use Chinese? Want to make sure I understand your request.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jasonshow
Posts: 7
Joined: Fri Jan 17, 2014 9:23 pm

Re: I can not type any Chinese in Script Editor !

Post by jasonshow » Sat Jan 18, 2014 9:34 am

hi simon,
you can try just key any Asian words in Script Editor,then save,clsose project,re-open it,the words become ????.

just simple like this.

answer "你好!"

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: I can not type any Chinese in Script Editor !

Post by Simon » Sat Jan 18, 2014 10:17 am

Actually there is a simple workaround.
I think step 6/7 in the lesson shows an easy way.
"answer the htmlText of line 3 of fld 1"
would work if you loaded field 1 with all the text you would need.


But that is a workaround, you can wait till ver 7.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: I can not type any Chinese in Script Editor !

Post by Klaus » Sat Jan 18, 2014 1:39 pm

...But that is a workaround, you can wait till ver 7.
Hm, that will surely take some months before we actually can use that version! 8)

jasonshow
Posts: 7
Joined: Fri Jan 17, 2014 9:23 pm

Re: I can not type any Chinese in Script Editor !

Post by jasonshow » Fri Mar 21, 2014 9:05 am

any new solution about this ?

thanks.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: I can not type any Chinese in Script Editor !

Post by bn » Fri Mar 21, 2014 9:43 am

Hi Jason,

see http://forums.runrev.com/phpBB2/viewtop ... =4&t=19658

this is the very early Developer version of Livecode 7.0, use with all precautions of using prerelease software. But that is where you can test full unicode.

I just tried

Code: Select all

on mouseUp
   put "你好!" into tTemp
   put tTemp into field 1
end mouseUp
and it worked. Since I don't know anything about non-latin languages I can't test further. But the text showed up after closing the editor and reopening it.

I also tried

Code: Select all

on mouseUp
   你
end mouseUp

on 你
   put "the command worked" into field 1
end 你
it also worked

Kind regards
Bernd

Post Reply