Jump to content

trouble with Chinese words


php_joe

Recommended Posts

Hi,

I'm trying to use PHP to create a link with a chinese word in it that will open an iframe.

The code that I'm using is this:
[code]echo "<a href=\"./rightcard.php?word=$chinese_word\" target=\"iframe\">Link</a>";[/code]

In the source code it looks like this:
[code]<a href="./rightcard.php?word=&#21160;&#29289;" target=\"iframe\">Link</a>[/code]

If it weren't for an iframe it would look like this in the URL bar:
[code]http://test.org/index.php?word=加法[/code]

But when I click on it the word comes up as "??"

Joe
Link to comment
https://forums.phpfreaks.com/topic/26225-trouble-with-chinese-words/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.