Solved

language conversion

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

708 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

15 Experts available now in Live!

Get 1:1 Help Now