|
Posted by J.O. Aho on 02/19/07 16:47
Pugi! wrote:
> Whenever I insert a geographical coordinate in database or even in
> textfile after submit, for example 15°16'18''
> it ends op like 15°16'18''. é, à, ç, è, ... ends up funny too. It
> shows ok when displayed on webpage. But it is hardly readable in
> database or in textfile.
You store UTF-8 characters into your database/files, you still need
UTF-8 support in the terminal where you display the result, most people
still uses some sort of ISO8859, in which character with values over 127
will be represented with a "dual 8-bit character". As the browser is set
to display UTF-8 it will be shown correctly.
You can in worst case use utf_decode()/utf_encode()
--
//Aho
[Back to original message]
|