Posted: Wed Aug 02, 2006 8:44 am
Hi.
I am developing a small database application for my lab. Here we all speak Spanish, so much of the text have accentuated characters (‡-œ and –). However, I have found an odd behavior when I use accentuated characters. Instead of showing them as such, Dataface replaces them with ? signs, and if I edit the registry and do not change it, Dataface stores them as �.
An example:
I type 'camale—n' and hit enter to save the registry.
The application shows 'camale?n'.
If I save the registry again, it then shows 'camale�n'.
It is odd, because I started using Dataface 0.5.3r2, and it worked. In fact, I noticed the problem after switching to 0.6. The funny thing is that these characters seem to be correctly stored in the database (checked with phpmyadmin), and if I force the browser to use ISO-8859-1 encoding or similar (the browsers switch to UTF-8 as expected when viewing Dataface pages), the characters are showed correctly. I have tried changing the character set of the database to utf8, but no difference.
I think that Dataface is showing the content of the fields as ISO-8859-1, but displaying the rest as UTF-8. I have tried creating a new application, just in case I had altered anything in the old one, but with the same results.
By the way, Dataface is the coolest thing I have found to develop database frontends (even for my lack of knowledge on PHP and SQL). 0.6 is really great. Thank you!
Felipe
I am developing a small database application for my lab. Here we all speak Spanish, so much of the text have accentuated characters (‡-œ and –). However, I have found an odd behavior when I use accentuated characters. Instead of showing them as such, Dataface replaces them with ? signs, and if I edit the registry and do not change it, Dataface stores them as �.
An example:
I type 'camale—n' and hit enter to save the registry.
The application shows 'camale?n'.
If I save the registry again, it then shows 'camale�n'.
It is odd, because I started using Dataface 0.5.3r2, and it worked. In fact, I noticed the problem after switching to 0.6. The funny thing is that these characters seem to be correctly stored in the database (checked with phpmyadmin), and if I force the browser to use ISO-8859-1 encoding or similar (the browsers switch to UTF-8 as expected when viewing Dataface pages), the characters are showed correctly. I have tried changing the character set of the database to utf8, but no difference.
I think that Dataface is showing the content of the fields as ISO-8859-1, but displaying the rest as UTF-8. I have tried creating a new application, just in case I had altered anything in the old one, but with the same results.
By the way, Dataface is the coolest thing I have found to develop database frontends (even for my lack of knowledge on PHP and SQL). 0.6 is really great. Thank you!
Felipe