Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
| Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 10th, 2007, 11:00 AM
Authorized User
Join Date: Apr 2004
Location: , , .
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default Read in Chinese Chars from Google

$str = file_get_contents('http://www.google.com/translate_t?langpair=en%7Czh&hl=en&ie=UTF8&text=hello');
The contents of the string from my BSD/Apache/PHP4.7 box does not contain (or i cannot read) the translated chinese characters.

The content is translated when surfing to the url on my windows box using IE7.

What am I missing here?

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong chars Scatman VB.NET 2002/2003 Basics 0 January 25th, 2007 07:42 AM
MySQL 4.1 and UTF-8 - trying to get foreign chars TadReeves MySQL 0 February 24th, 2005 11:06 PM
Seeing ctrl chars in C#/VS.NET? peri C# 0 December 6th, 2004 10:59 PM
Read XML having japanese and chinese characters mvvramesh XML 0 May 31st, 2004 06:17 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.