![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
Re^4: Yet another Encoding issue...by Bod (Parson) |
on Jun 01, 2024 at 21:48 UTC ( [id://11159747]=note: print w/replies, xml ) | Need Help?? |
That makes sense thanks! $reply->{'response'} = decode('UTF-8', $data{'userChat'}); seems to have done the trick on the test script... So that's one problem solved. It seems I'm now getting encoding problems from AI::Chat, but only when I call the chat method, not when I call the prompt method. But that doesn't make a lot of sense as prompt uses chat... I'll have to try and simplify the code and see if I can reproduce it! Update: This is the sort of thing I'm getting back from AI::Chat
Another Update:
The correction comes from the prompt method and the characters display correctly whereas the response comes from chat and the is unreadable...
In Section
Seekers of Perl Wisdom
|
|