I’ve a problem with my sketch, everytime I have a text with special characters, with text() function or with println().
It works well on JAVA but makes strange characters on android mode! reportingProcessingBug|690x415
I’ve tried to reinstall processing and android several times, but the problem continues.
I’ve tried to change the font, but it’s the same…Could someone please help me? Am I doing something wrong?
I think this bug started after processing’s update but I’m not sure about it…
You need to provide your code that demonstrates this bug. Don’t forget to provide details about your phone, target Android API, Processing version, Processing Android mode version.
I also suggest running examples code. In Android mode, run the UI sketch under the ketai examples.
I had the same issue trying to display french characters (e, è, à, … for example) on android. The only way that worked for me was to read the text from a csv file and using processing table.
Hope this helps. Peace.
PS: kfrajer processing does not handle special characters well
Thanks for your answer, I’m new and it is my first post.
I’ve tried to provide the code example I used, but I see that the image seems to not open, I’ll try again:
(import processing.vr.*; << don’t take care about this, it was just a test)
my mobile phone is an Samsung S7 with the last version, I’ve tried with the emulator of processing, the problem is the same.
my processing version is 3.3.7.
processing android mode is 4.0.2
What’s interesting, is that the application was working fine, till yesterday, when I got a bug with processing was not launching and had to reinstall processing all over again.
Thanks @neilcsmith, unfortunatly it didn’t resolve, the function seems to work on Java but not on Android. And even If I change on Java it still work but on Android it’s the same:
@Tiago I may not have explained it very well. You need to set that for whatever is going to be running the compiler (not in your sketch). That’s why trying the environment variables might be a better way.
If you hit the Windows key and type environment variables is there nothing listed? If not, sorry I’ll have to refer you to Google as I don’t have access to my Windows testing machine at the moment and can’t remember which section it’s in.
Yes, that’s the one. Clicking on the bottom button should open up a table where you can add / modify environment variables. You want to add (I think) one with the key JAVA_TOOL_OPTIONS and the value -Dfile.encoding=UTF-8 You might be better restarting after doing that too. Fingers crossed that might help - remove it if not.