Chinese Character in Fields, Buttons

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
cyang126
Posts: 5
Joined: Sat Apr 20, 2013 3:22 pm

Chinese Character in Fields, Buttons

Post by cyang126 » Sat Apr 20, 2013 3:35 pm

This question may have been asked before, but I can't find any answer.

How do I place Chinese character into a Field or Button?
i.e. put "歡迎" into field "Field"
But as soon as I clicked Apply, then it turn into
put "??" into field "Field", so is the Button Name turned into "??"

Also, How do I make a unicode ready app?

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

Re: Chinese Character in Fields, Buttons

Post by Simon » Sun Apr 21, 2013 12:40 am

Here is the post:
http://forums.runrev.com/phpBB2/viewtop ... icodeLabel
it requires that you use a second field to input the Chinese characters but then you can set the working fields and labels.

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

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Chinese Character in Fields, Buttons

Post by snm » Sun Apr 21, 2013 8:46 am

Or you can read from any UTF8 coded file or database. Then use uniEncode.

Marek

cyang126
Posts: 5
Joined: Sat Apr 20, 2013 3:22 pm

Re: Chinese Character in Fields, Buttons

Post by cyang126 » Sun Apr 21, 2013 5:50 pm

Why can't livecode allow us to put unicode characters in the string directly?
i.e. put "歡迎" into Field "Field" is more straight forward, easier to modify.

I was going to use livecode to develop an unicode app, but looking over the solutions, I have a second thought on using livecode to develop this application. RealStudio or Visual Studio would be better fit to develop the app.

I was really excited about livecode, but not allowing me to insert unicode into field or button directly is not very appealing for me. I hope livecode can consider there is a mass of developers developing applications other then English based.

Unless livecode is focus on Mobile app? I can see the value in develop iOS and Android, but again unicode capability is very important for non English speaking developers.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Chinese Character in Fields, Buttons

Post by jacque » Sun Apr 21, 2013 7:42 pm

Some of the info here is outdated. You can now do this:

set the unicodetext of fld 1 to <unicodestring>

You can also set only a chunk of the field, for example, char 1 to 10 of fld 1. See "unicodetext" in the dictionary.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply