Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

language conversion

Posted on 2006-11-19
3
Medium Priority
?
733 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 19

Accepted Solution

by:
VoteyDisciple earned 280 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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 …

721 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