Cells with accent are truncating

Topics: Developer Forum, User Forum
Dec 21, 2011 at 8:23 PM

When I insert an accented text in a cell, it is being trucated at the first character accented. Ex: If I try to insert the text "Trópia", only "Tr" is inserted.

The sample 01simple.php has an accented text being inserted in a cell and it works! The only difference is that 01simple.php is at a folder "Tests" at the same level of "Classes" folder and my program is not in a folder at the same level of "Classes" folder (and cannot be!).

Any idea?


Marcelo Trópia

Dec 27, 2011 at 6:41 PM

Oi Marcelo,

Try using utf8_encode(...) for the string your inserting.

Hope it'll work.


Dec 28, 2011 at 4:06 PM

Hi Thierry,

It worked!

Muito obrigado (thank you)!