Jump to content


Photo

php returns japenesse characters


  • Please log in to reply
4 replies to this topic

#1 socal_0351

socal_0351
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 11 June 2006 - 08:34 AM

hi,

i have a website hosted by earthlink. im able to use php 5+ and 4+. my problem is that i have a form that posts to my php script, lets call it "proccess.php5" (earthlink requires the ext of php5 or php4). now the problem is that all my results(at least i think they are) are returned in what appears to be japenesse characters. i've never seen this before. but if i directly access "process.php5", i can view it in english. ummm, yah, i have no idea whats going on. does anyone know anything about this. this is something i would like to fix, obviously.
any suggestions would be appreciated.

thank you

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 11 June 2006 - 12:33 PM

Sounds like a problem with the character set definition in your 'results' page. View the source (html) in a browser to check that.
Legend has it that reading the manual never killed anyone.
My site

#3 socal_0351

socal_0351
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 12 June 2006 - 03:19 AM

[!--quoteo(post=382474:date=Jun 11 2006, 07:33 AM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Jun 11 2006, 07:33 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Sounds like a problem with the character set definition in your 'results' page. View the source (html) in a browser to check that.
[/quote]


thanks for responding. im looking at it, but i dont see anything unusal. what should i specifically be looking for?

#4 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 12 June 2006 - 04:09 AM

It may be an encoding problem, try to use the header() function or meta tags and set the correct encoding:

[a href=\"http://www.php.net/header\" target=\"_blank\"]http://www.php.net/header[/a]

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

~ D Kuang

#5 socal_0351

socal_0351
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 13 June 2006 - 02:23 AM

[!--quoteo(post=382731:date=Jun 11 2006, 11:09 PM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Jun 11 2006, 11:09 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
It may be an encoding problem, try to use the header() function or meta tags and set the correct encoding:

[a href=\"http://www.php.net/header\" target=\"_blank\"]http://www.php.net/header[/a]

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
[/quote]


poirot

that did the trick thanks. its makes life a lot nicer now. i appreciate it




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users