Jump to content

Recommended Posts

I have decided to create a similar method as a resource file for my language pack.  I have a table with a filed for each langugae and a filed for the key - this enables me to generate an array with the as listed in the database table and the corresponding string...

 

OK great...

 

When using characer sets like chinese and japanese I only see the <pre>??????</pre> or those infernal rectangles.  My databse can store the characters as they are (looks like Chinese in there!!!) but the page just won't play ball I have.

 

Will add this is on my onw development machine and not the live server...

 

Any help would be much appreciated.

 

(I use utf-8 as the encoding lang of the html page - is there some requirement for utf8_encode of is it something more fundamental).

Link to comment
https://forums.phpfreaks.com/topic/63819-language-pack-help/
Share on other sites

well thats the thing - if you use the translator on dictionary.com (http://dictionary.reference.com/translate/) and put in your word/phrase its spits out the chinese that I can see.

 

if I cut and paste that directly into phpmyadmin it stores the string and appears as chinese. when I echo that out on my page i get the ?'s. If i try to paste the chinese chars into my html editor I get the rectangles.

 

If I store the unicode [pre]&#35831;&#24037;&#20316;[/pre] I get the chars I want.

 

go on miniclip and switch the language to chinese - if you look at the source code the chinese chars are in there.....

Link to comment
https://forums.phpfreaks.com/topic/63819-language-pack-help/#findComment-318077
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.