cowtan
(Gordon)
May 25, 2012, 12:08pm
1
Hi - I have a CActiveForm that has a couple of text fields where I’m expecting that users might often want to enter £ (pound) signs. When I test this, the pound signs are being saved in the database as questions marks (?).
I’m sure this probably has something to do with character sets but I don’t know enough to begin to formulate a plan for solving it.
Anybody got any idea?
cheers,
Gordon
cowtan
(Gordon)
May 25, 2012, 12:18pm
2
Hi - I have a CActiveForm that has a couple of text fields where I’m expecting that users might often want to enter £ (pound) signs. When I test this, the pound signs are being saved in the database as questions marks (?).
I’m sure this probably has something to do with character sets but I don’t know enough to begin to formulate a plan for solving it.
Anybody got any idea?
cheers,
Gordon
Hi Gordon - Have you tried just changing the content type to UTF-8 in the template?
eg
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
Gordon
cowtan
(Gordon)
May 25, 2012, 12:19pm
3
Just tried it and that worked fine. Thanks very much.
cheers,
Gordon
cowtan
(Gordon)
May 25, 2012, 12:21pm
4
No problem. I get the impression this problem was starting to drive you mad.
cowtan
(Gordon)
May 25, 2012, 12:22pm
5
Yes it was. But I’m feeling much better now.
Hey is it me or the previous messages are all of them from a single member?
Seal
(Sealtrip)
May 26, 2012, 8:52pm
7
Well bennouna I was just about to ask the same question.