Solved

language conversion

Posted on 2006-11-19
3
723 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
This article discusses how to create an extensible mechanism for linked drop downs.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

821 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