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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.