Languages :: PHP :: special characters problem |
|||
| By: whirsch |
Date: 26/05/2003 00:00:00 |
Points: 50 | Status: Answered Quality : Excellent |
|
I tried to submit a form with the post method. <?php if($_POST) echo $_POST["input"]; ?> <form name="inputform" method="post"> <input name="input" type="Text"> <input type="Submit" value="auswerten"> </form> When I use this script with Opera 7, NS 6.02 or Konqueror the some special characters (f.e the euro symbol) are converted into question marks. With IE6, NS7, Mozilla 1.2.1 it worked fine. Is there a solution for this or is it a browser depending problem? cu smart007 |
|||
| By: VGR | Date: 26/05/2003 06:40:00 | Type : Comment |
|
| I really don't know. But perhaps you could urldecode() for me, your script works fine with my Phoenix 0.5 when I passed this string to it : "totoێra" |
|||
| By: whirsch | Date: 26/05/2003 06:50:00 | Type : Comment |
|
| mhm. The problem is that the input is converted before I can call any function. This is the main problem. cu Werner |
|||
| By: schmad | Date: 26/05/2003 07:36:00 | Type : Comment |
|
| The best way to solve this problem would be to convert the euro symbol to its character entity. The entity for the euro symbol is € I would suggest a simple str_replace to accomplish this conversion. $_POST[input] = str_replace("?","€",$_POST[input]); |
|||
| By: VGR | Date: 26/05/2003 08:01:00 | Type : Answer |
|
| I think this is clearly an encoding-problem, browser-specific |
|||
| By: whirsch | Date: 27/05/2003 05:32:00 | Type : Comment |
|
| Thanks for your fast help. cu Werner |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








