octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.38k stars 961 forks source link

Can't write characters with accent in windows 10 and ubuntu #649

Open ghost opened 3 years ago

ghost commented 3 years ago

Expected Behavior

Can't type characters of a string that contains accents.

Current Behavior

I have a sheet of names that the script will create certificates, but when it encounters a char that has an accent, he doesn't print it. For example, in this certificate, the first name is supposed to be "Lígia Stella", with an accent on the 'i'. But when the program writes her name, i get this: image Instead of: image

I tested it in the standard windows explorer address bar, so it's not the PDF.

Possible Solution

I honestly don't know, but if can help with anything i will.

Steps to Reproduce (for bugs)

  1. Try to have a program to type "Lígia Stella".

Context

As said before, i'm using robotjs to automate the creation of some certificates, because doing it by hand is impossible. A tryed to use some pdf editing libraries but i had no success, mainly because of the font(if anyone could help me, it would be great!). I don't know if it was clear, but im braziliian(hence the accent problem), i understand english but my writing may not be good.

Your Environment