tags:

views:

29

answers:

1

What file format should I use? It is for PHP to afterwards retrieve such a character and for HTML to display.

+1  A: 

You should be encoding the text as UTF8, then writing it to the file.

If you're doing this with PHP, then (I think) it'll be something like:

$f = fopen("/path/to/file", "w");
fwrite($f, utf8_encode($some_string));
fclose($f);

(although, this assumes that PHP is using Unicode internally… But, then, it might not – my memory is kind of hazy)

David Wolever
The implicit input to PHP's utf8_encode() is an `ISO-8859-1` string, and this would therefore not answer Coder123's question, one of the reasons being (not the only one) that 8859-1 does not include any o-with-a-bar looking character.
mjv