that method was included in OF 0.8 so you if your file is UTF8 you shouldn’t need to do the substitution before anymore. if you want your old code to work like it is, you can call on the font object:
ttf.setEncoding(OF_ENCODING_ISO_8859_15);
so the substitution you were doing will still work
Thanks a lot, the old code is working fine with this method.
But it’s not working without the substitution. When I convert from string to vector to split each character it doesn’t handle combinations: for example I have ‘\303’ in one cell and ‘\251’ in the next one instead of ‘é’, so I have to analyze each character before splitting and choose to merge 1, 2 or 3 characters in one cell.
Anyway I am happy with my old code + OF_ENCODING_ISO_8859_15.