-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psql Client encoding doesn't allow Umlaute / other UTF8 special characters #76
Comments
After some research, it seems that there are multiple options that we need to test on @Petzlc machine. Solution 1We need to find out what encoding the machine uses for the database by entering Solution 2You can also manually change the locale system language to use |
Ok nice, go ahead with more investigation - prefer choices that:
|
This is the output of @Petzlc when checking the encoding with
and when checking the
Maybe the missing Setting the To change the encoding to To ensure that we start creating a DB with CREATE DATABASE <name> ENCODING 'UTF8' but this command will not set the default encoding to Maybe I can find a way to use the Control Functions from PostgreSQL. |
what exactly is affected here, from the "full system"? is it only the command line? if so, that may be acceptable
keep in mind that we already set
if it makes sense to also do this for the other operating systems (first figure out what is affected by it in the "full system") then we can go ahead with such a PR (and make sure that we do it all the same way in all of Windows, macOS, Linux) cc @Eprince-hub in case this also affects your #73 issue |
What LC_ALL changes I don't think that the Read some info about Locale here. |
yeah check into this a bit more, we should have A) a list of things that we are relatively certain that |
Reporting on behalf of @Petzlc, text from @Petzlc:
What happened that was unexpected
Hyper somehow cannot process
äöü
so it always throws this Error message:What were your expectations
That i can create my table with the values that contain äöü in the spelling.
Your guess of what the problem is
So on my journey of researching i ran into this message that also appears when i start
psql
and which seems to be a problem for other people too and seems to be the root of this problem:(mine is in german though)
with the following advice:
When you connect to your database you can specify what encoding should your client use:
If server and client encoding differ, the database driver tries to translate between those two encoding. When it can not find an equivalent character, the error is thrown.
A list of things you have tried to solve it
So this seems to me like a pretty forward advice of what to do when someone runs into this error. I didn't try to apply it though and just changed the
äöü
toae
andoe
andue
. Also i'm wondering if this affectsé
è
and so on. I just changed everything to uncomplicated and common letters.The text was updated successfully, but these errors were encountered: