|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
characters problem with meta tag
Hi,
I'm writing a php script. (but i think my problem is nothing to do with php, that's why i posted it here.) My code: The problem is that if the value of the passed variable($_POST[name]) contains accentuated letters( for example:é) then it will not pass correctly. This happens when i use the meta tag redirecting, but if i use the commented line(simple link, see code) then it works! more specific: $_POST[name] = "Péter" Then if I use the meta tag redirecting and print out the value of $_GET['name'] in test.php i got the following: P�ter and in the url: http://127.0.0.1/test.php?name=P%EF%BF%BDter but if i use the another way(simple link), then it prints out Péter and in the url: http://127.0.0.1/test.php?name=P%E9ter And another thing, this happens when i use Opera browser. I tryed out the meta tag version with IE5.5 and it worked! Can someone tell me what should i do to get this working under Opera? Perhaps i should set some preferences(witch i tryed) but found nothing useful. Or i have to put some other meta tags in my page to get accentuated letters working? Sorry for the long post, any help appreciated. Thanks in advance. |
|
#2
|
|||
|
|||
|
RE: characters problem with meta tag
Sorry, i mistyped: Of course i write out $_GET['sel'] in test.php.
|
|
#3
|
|||
|
|||
|
RE: characters problem with meta tag
you might get it to work with urlencode($_GET['name']), but i need to know what encoding you use for your pages to help you better? UTF-8 or other?
|
|
#4
|
|||
|
|||
|
RE: characters problem with meta tag
I'm a newbie in this characters thing. You are thinking about(for example) the
<meta http-equiv='charset' CONTENT='ISO-8859-2'> lines. I didn't write this kind of lines in my pages. What do you suggest, which character set should i use if i want to get accentuated letters work? |
|
#5
|
|||
|
|||
|
RE: characters problem with meta tag
try
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> with urlencode() function. (btw, no need to use this charset with other pages. only for this redirecting one) |
|
#6
|
|||
|
|||
|
RE: characters problem with meta tag
A very big Thank You Zombie!
I got it working with the urlencode() function and i don't need to insert that charset line. In the first time i misunderstood that function, but now it's all clear. Thanks again!!! |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > characters problem with meta tag |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|