Link to home
Start Free TrialLog in
Avatar of Webman04
Webman04Flag for United States of America

asked on

Need to add Chinese text to Joomla 1.7 website, won't accept it

Hi, I'm building a website for someone that lives in China.  I don't speak Chinese though, but it should not effect the project as they have translated everything I will need.  I installed the language packs and all is well on the module part however, when I try to copy/paste the Chinese into a new document it only shows a bunch of ????????? and none of the text. I tried switching editors to use JCK Editor and setting it to not use any editor but the same result occurs.   Has anyone found a fix for this?  Is there another editor that would work with Chinese?
Avatar of Carlos Llanos
Carlos Llanos
Flag of United States of America image

Can you post a file with the chinese characters in it so I can test this?  Thanks.
Avatar of Webman04

ASKER

Hi, OK I uploaded some of the content so you can test it.  Thanks
chinese.txt
Thank you.  I will get back to you on this.
Ok, I have tested this and here's what I got.

1.PNG
Didn't mean to send that so fast...

Anyway, here's the settings I had in order to get this in there:

Global Configuration text editor: Editor- TinyMCE

I just pasted the text in there and it worked for me.  

So, my next questions are: what kind of module are you creating a customHTML?  
Have you tried to use the default TinyMCE editor?
Have you tried to turn of the text-filtering on the articles?

Here's how to do that:

Go to "Article Manager"
Go to "Options"
Go to "Text Filters"
Assuming you are a Super User change Super User "Filter Type" to "No Filtering"

Let me know if any of that helps.
Hi, yes to all your questions and no it did not work sorry.  I have the filtering set and the TinyMCE as the editor but when I paste the chinese charactors into the editor and save it, it looks like this:

??????????????????????????????BioScience Writers?BSW???????????????????????????????????????????????530?????????????????????????????????????Nature?SCI?????????????????? ?BSW?????????????????????????????
Ok, did you try changing the text-filtering to "NO Filtering"?  

Also, do you have a test website to try this out on?
Hi, yes I changed the setting for super admin to "No Filtering" and still won't accept the content.  I do have a test site but I can't give access to it directly as there is a lot of work on it and the client would also not like it.
No, I wouldn't need direct access to it, but I was thinking you could test the code on that site and see if it was related with the language packs you installed.

Normally this should work straight out of the box, if something was added to your site, then that would be the problem...so it might be the language pack plug-in...
How much would you charge to fix it for me?
First, I would just look at it...no charge for looking...I could then tell you what I think it is...

Is this site live?
It's not live but there has been a lot of other stuff done to it, it's been backup though  with Akeeba.
Oh, awesome, could you post the backup file here...if it will let you?  Then I can test it on my side and let you know what I think it is.
The text is fine.  But there is a character-encoding issue.  See the article here:
http://www.joelonsoftware.com/articles/Unicode.html

This shows that the text is fine:
http://www.laprbass.com/RAY_temp_chinese.php

However if you store or transmit the string in a Western encoding, you should expect a lot of question marks ;-)
<?php // RAY_temp_chinese.php
error_reporting(E_ALL);

$url = 'http://filedb.experts-exchange.com/incoming/2011/10_w41/509416/chinese.txt';
$str = file_get_contents($url);
echo $str;

Open in new window

Hi Nukit, sorry for my delayed response, I have a bad cold.  If you can give me your email address I will send the Akeeba Backup file to you so you can have a look.  
Sure, check out my profile page...it's on there...
SOLUTION
Avatar of Webman04
Webman04
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Try it again...sorry...
dersecomputers ...at...gmail...com
You have to click on the Hire Me button in order to see it ;)
Hi Nukit, I just emailed you all the info you will need.  Thanks very much for your help on this.
OK, I'll look for the email.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As I was the only one to fix this I gave myself the points :)