?
Solved

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

Posted on 2011-10-04
24
Medium Priority
?
391 Views
Last Modified: 2012-05-12
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?
0
Comment
Question by:Webman04
  • 13
  • 10
24 Comments
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36912960
Can you post a file with the chinese characters in it so I can test this?  Thanks.
0
 

Author Comment

by:Webman04
ID: 36915734
Hi, OK I uploaded some of the content so you can test it.  Thanks
chinese.txt
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36916566
Thank you.  I will get back to you on this.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36916590
Ok, I have tested this and here's what I got.

1.PNG
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36916613
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.
0
 

Author Comment

by:Webman04
ID: 36917091
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?????????????????????????????
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36917282
Ok, did you try changing the text-filtering to "NO Filtering"?  

Also, do you have a test website to try this out on?
0
 

Author Comment

by:Webman04
ID: 36917983
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.
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36918007
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...
0
 

Author Comment

by:Webman04
ID: 36918210
How much would you charge to fix it for me?
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36918220
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?
0
 

Author Comment

by:Webman04
ID: 36918246
It's not live but there has been a lot of other stuff done to it, it's been backup though  with Akeeba.
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36918258
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.
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 36918593
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

0
 

Author Comment

by:Webman04
ID: 36925473
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.  
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36925479
Sure, check out my profile page...it's on there...
0
 

Assisted Solution

by:Webman04
Webman04 earned 0 total points
ID: 36925591
Hi, I can see your website address but no email?  
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36925632
Try it again...sorry...
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36925636
dersecomputers ...at...gmail...com
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36925941
You have to click on the Hire Me button in order to see it ;)
0
 

Author Comment

by:Webman04
ID: 36926330
Hi Nukit, I just emailed you all the info you will need.  Thanks very much for your help on this.
0
 
LVL 13

Expert Comment

by:Andrew Derse
ID: 36926334
OK, I'll look for the email.
0
 

Accepted Solution

by:
Webman04 earned 0 total points
ID: 36935388
Hi, I was able to fix it by changing the content table collation to UTF-8, several tables actually.  Just so you experts know this for your next questions.

Thanks
0
 

Author Closing Comment

by:Webman04
ID: 36960663
As I was the only one to fix this I gave myself the points :)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month17 days, 4 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question