Special Characters not allowed

Talk about Multi-Language tricks, problems, errors etc.

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

nobile
Newbie
Newbie
Posts: 2
Joined: Mar 26th, '09, 21:50

Special Characters not allowed

Postby nobile » Mar 26th, '09, 21:59

Special Characters not allowed

Message par nobile le Mer Mar 25, 2009 11:57 am
I want to use UTF-8 encoding with character "€" (euro). However the JavaScript Validator tells me that "€" is not valid.

When I use:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
$dg_encoding = "CHARSET=UTF-8";
$dg_collation= " COLLATE=utf8_unicode_ci";
$dgrid->setEncoding($dg_encoding, $dg_collation);

and the database is as well utf-8 charset and utf8_unicode_ci encoded, the special characters are not treated correctly.

Please check or help to resolve this issue,
Thank you
Martin

moschitz

Messages: 1
Inscrit le: Mer Mar 25, 2009 11:46 am

* Message privé

administrator
Site Admin
Site Admin
Posts: 5988
Joined: Jan 7th, '09, 23:18
Contact:

Re: Special Characters not allowed

Postby administrator » Mar 27th, '09, 07:20

For special characters in avascript alert you need to use "y" prefix.
for example: "rty" - where "y" means - any.

For database UTF-8 - check that you defined collation of table and appropriate fields as needed.

hugomp
Master
Master
Posts: 217
Joined: Feb 20th, '09, 12:44

Re: Special Characters not allowed

Postby hugomp » Apr 1st, '09, 08:00

Also, this post may help: viewtopic.php?f=25&t=19
I am using latin and it did work for me...

daviddelmonte
Master
Master
Posts: 159
Joined: Feb 23rd, '10, 15:06

Re: Special Characters not allowed

Postby daviddelmonte » May 27th, '10, 02:49

"I want to use UTF-8 encoding with character "€" (euro)."

I found that it works if I enter &euro;

that character is the "ampersand".


Return to “Multi-Language implementation”