Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problems with Polish letters
doodlebug
post
Post #1





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 16.09.2010

Ostrzeżenie: (0%)
-----


Hello All!
Apologies for my lack of Polish and apologies if this has gone in the wrong forum.
I'm creating a website where you enter your details in text boxes on an .html page, which you then review on a .php page.
Everything has been changed to utf-8.

The problem is when you enter Polish characters in the text box, on the next page when you review the information and say whether it's good or not, the Polish characters show up as "Auml�Auml�Auml�Aring�"

Any idea what the problem could be?

Many thanks in advance
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
doodlebug
post
Post #2





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 16.09.2010

Ostrzeżenie: (0%)
-----


Thanks for answering, however I'm a complete idiot and new to php. Do you want me to try:

$firstname = ereg_replace htmlentities("[^0-9a-zA-Z?ąćęłńóśżźĄĆĘŁŃÓŚŻŹ ]", "", $string1);

This gives me the error:

Parse error: syntax error, unexpected T_STRING in /home/englas/public_html/znajdejezyk.pl/studentpreinsertpl.php on line 82

I also tried:

$firstname = ereg_replace (htmlentities("[^0-9a-zA-Z?ąćęłńóśżźĄĆĘŁŃÓŚŻŹ ]", "", $string1));

And that gave me some warnings on the page:
Warning: htmlentities() expects parameter 2 to be long, string given in ***** on line 82

Warning: Wrong parameter count for ereg_replace() in ***** on line 82

Ten post edytował doodlebug 17.09.2010, 13:12:19
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 28.12.2025 - 08:22