I'm dealing with filenames:
PHP lists files, converts to JSON which will end up in a jsTree. In
german there are a lot of "umlauts" like ä ö ü... Because of them i
need to convert between UTF-8 and ISO.
- Data received from jsTree (creating, renaming, moving files/folders)
needs to convert from UTF-8 using decode_utf8().
- Data sending from PHP to jsTree needs to be converted using
encode_utf8()
And: make sure PHP sends a header identify the data as UTF-8 using:
header('Content-Type: text/html; charset=utf8');
A bit tricky sometimes, but works for me.
Markus.