Solved

language conversion

Posted on 2006-11-19
3
722 Views
Last Modified: 2012-05-05
Hi,

I want to make my website with multilingual feature. For that i use google's language translator service. I write one language translator class to translate content of my site from english to any other foreign languages. It works perfectly except chinesese, korean and japanese languages. I set charset as iso-8859-1. When i translate the site to chinese language all texts replace with question mark "?" . If I set charset as UTF-8 then it shows some jumbled up text.

My browser supports chinese language. Any chinese site comes properly. I can't understand why it's happen for my site? Do i need any configuration at server.
0
Comment
Question by:santanude
3 Comments
 
LVL 19

Accepted Solution

by:
VoteyDisciple earned 70 total points
ID: 17978907
Well, it's no surprise iso-8859-1 doesn't work, since that character set doesn't include Chinese, Korean, or Japanese characters.  

UTF-8, however, does.  When you switch to UTF-8 are you both converting your output to UTF-8 and setting the Content-Type header?  You should be doing this at the beginning of your script:

<?php
header('Content-Type: text/html; charset=utf-8');

mb_http_output("UTF-8");
ob_start('mb_output_handler');
?>
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
designing in object programming 12 75
Cannot call a static method on an Eloquent object 6 29
Attach to file (img) a unique id 8 23
Php recording post 4 33
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
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…
The viewer will learn how to count occurrences of each item in an array.
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…

815 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now