How to use itext 5 accent

Asked

Viewed 97 times

0

I’m not able to use accentuation in itext 5. I took a look at the examples of the site, but did not find en. Would anyone know how to use it? It is being used on Android. The fields of the model class fed by the android routines the accent works correctly. Now when creating a new String it does not work. I’ve even tried to charset the string to utf-8 or ISO, downloaded other fonts, used Arial as well and does not work.

  • The problem has already been solved. The problem was being caused by the class charset in the IDE (Intellij). It was UTF-8 and was changed to ISO8859_1.

  • The problem has already been solved. The problem was being caused by the class charset in the IDE (Intellij). It was UTF-8 and was changed to ISO8859_1. But what makes the problem strange is that after trying to perform settext in Edit fields manually occurred the same problem, even in classes where it was already in this pattern. In order not to change the property of the charset in intellij and give problem with other developers, the string was directly converted from utf8 to iso. Ex: new String("Note". getBytes("UTF-8"), "ISO-8859-1");

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.