PostgresChatMessageHistory is not working with UTF8 character #87

Closed
opened 2026-02-16 05:16:30 -05:00 by yindo · 1 comment
Owner

Originally created by @Nhanvu1009 on GitHub (Aug 27, 2025).

i have a HumanMessages contain Vietnamese language. and i wana push it to history
Image

but when i call history.add_messages([msg])
the error is postgres is not encoding UTF8

Image

i think we need to control that column message can contain UTF8 or any others

Originally created by @Nhanvu1009 on GitHub (Aug 27, 2025). i have a HumanMessages contain Vietnamese language. and i wana push it to history <img width="918" height="46" alt="Image" src="https://github.com/user-attachments/assets/f0f35bef-e83b-4192-a2e1-e874ae157ce6" /> but when i call history.add_messages([msg]) the error is postgres is not encoding UTF8 <img width="1239" height="247" alt="Image" src="https://github.com/user-attachments/assets/da7f60f2-197b-4cb9-85f1-0c2e7c19aef7" /> i think we need to control that column message can contain UTF8 or any others
yindo closed this issue 2026-02-16 05:16:30 -05:00
Author
Owner

@Nhanvu1009 commented on GitHub (Aug 27, 2025):

it's my fault. i created databse hot have encode UTF8

@Nhanvu1009 commented on GitHub (Aug 27, 2025): it's my fault. i created databse hot have encode UTF8
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langchain-postgres#87