cartertemm / AI-content-describer

NVDA add-on that provides descriptions for controls and images, powered by GPT4
GNU General Public License v2.0
47 stars 22 forks source link

the hint field value is not UTF-8 encoded #27

Open George-br opened 4 months ago

George-br commented 4 months ago

Hello!

if you write a prompt in the application settings in a language other than English, the settings cannot be saved

cartertemm commented 3 months ago

Is this on the latest version? I tried using the following prompt, but the settings are saving without an issue, and I don't see anything in the log:

"描述这张图片的细节尽可能详细。您的回答应该用中文写成。"

George-br commented 3 months ago

Is this on the latest version? I tried using the following prompt, but the settings are saving without an issue, and I don't see anything in the log:

"描述这张图片的细节尽可能详细。您的回答应该用中文写成。"

Yes, it is in the latest version, if you write the text of the prompt in Ukrainian, it is impossible to save the settings Here is an example in Ukrainian, you can copy and paste it into the hint field and try to save it. «Опишіть цю картинку якомога детальніше. Ваша відповідь має бути написана українською мовою».

daniel-luper commented 2 months ago

Hi @George-br, sorry you've had trouble updating the prompt!

I was able to save your Ukrainian prompt

Опишіть цю картинку якомога детальніше. Ваша відповідь має бути написана українською мовою

in the settings for Claude-3-Haiku in the plugin's latest version without any problems. I was then able to generate image descriptions in Ukrainian. Could you provide some more context around your bug?

Also, did you press the "Apply" or "Ok" buttons after updating the prompt?

cartertemm commented 1 month ago

Hello @George-br,

I just wanted to follow up on this. Are you still experiencing the same behavior after building the addon from main? I've tried on multiple machines without fail.

If so, can you tell me what you have set for the default Windows locale and language?

Thanks!

George-br commented 1 month ago

@cartertemm Hello! Now the hint in the field is saved, everything is fine. But after clicking the OK or Apply button, the settings dialog does not close automatically, as it should, in general, if you change any settings in the application after clicking OK, nothing happens with the settings dialog, although the settings are applied you need to press the ESC key to close the settings dialog.