Welcome to the E-Blah Community!
We would like to welcome you to our community and invite you to register an account or login.
Being a registered member is important, as it gives you several advantages over the normal Guest status. After registering you will be able to download files and images, post messages, and access member-only portions of the forum - just to name a few. Registration is quick and simple, and only takes about a minute of your time.

E-Blah Community    E-Blah Discussion    Language Support  ›  Unicode support?
Users Browsing Forum
No Members and 1 Guests

Unicode support?  This thread currently has 1,312 views. Print
1 Pages 1 Recommend Thread
Davidr
March 29, 2005, 4:46am Report to Moderator Report to Moderator
Guest User
Hello, I am attempting to translate the board into Japanese, and wanted to use UTF-8 to allow people to post in multiple languages, however I'm running into a slight problem. This might be a perl limitation, or perhaps the way the board was programmed, but when I change the contents of the language files into unicode, the board gives an error about unrecognized characters in the language file. If I save it as ANSI (Shift-JIS for Japanese) while changing the browser encoding to UTF-8, of course it won't display correctly. The thing that confuses me is that the posts I make in the forum in UTF-8 display fine. The partial subject listing on the index also displays fine (although I had to increase the max length to 24 to prevent it from turncating in the middle of a unicode character). Does anyone have any ideas about how to enable unicode when making the menus into a non-european language?
Logged
E-mail E-mail
Justin
March 29, 2005, 10:10am Report to Moderator Report to Moderator

The E-Blah Developer
E-Blah Programmer
Posts: 15,070
Gender: Male
Posts Per Day: 6.55
Reputation: 93.40%
Reputation Score: +297 / -21
Time Online: 36 days 23 hours 14 minutes
Location: Tallassee, AL
Age: 22
You'll probably need to use the unicode character, and then change the charset in the Language pack, and make sure it's in the Template for that charset.


I do installs for $25 and upgrades for $20.
Technical support is always free.

  Donate to E-Blah!  

My Websites: Revolution Reality (My Blog)  |  MinistryTalk.com  |  Portfolio

"But you, O Lord, are a compassionate and gracious God, slow to anger, abounding in love and faithfulness." — Psalm 86:15 NIV

Logged Offline
Site Site Private Message Private message Reply: 1 - 3
Davidr
March 29, 2005, 8:49pm Report to Moderator Report to Moderator
Guest User
The problem is that when I save the *.lng files as UTF-8 encoding, I get an error every time I try to execute Blah.pl saying that it gets an invalid character from line 1 of the language file. It doesn't even read the .lng file up to the place where I specify the encoding type. This makes sense, though, since perl needs its code to be in ANSI, even though it saves strings as Unicode. The dilemma here is how can I set strings to unicode contents, even though I'm only able to input the characters in the code itself as Shift-JIS?
Logged
E-mail E-mail Reply: 2 - 3
Davidr
March 29, 2005, 9:34pm Report to Moderator Report to Moderator
Guest User
Hmm, I think I may have discovered the cause of my problem. My server is only running Perl 5.0. I think it's time to talk to the system admin.
Logged
E-mail E-mail Reply: 3 - 3
1 Pages 1 Recommend Thread
Print

E-Blah Community    E-Blah Discussion    Language Support  ›  Unicode support?