0

I'm using terminator on debian, and its enconding is set to UTF-8. In most cases this isn't a problem since almost everything that's recent has the encoding set to utf-8 aswell.

When I connect to a specific mysql database that has a different encoding and preform a select the result comes out with some � characaters. When updating tables, the results on the other end also are messed up.

Is there any way to connect to the database (or set the shell) so I can see and write in a different encoding? (latin1 in this case)

3
  • You said write, but then whet on to describe reading. Which is it? Commented Apr 21, 2020 at 10:51
  • fixed the title
    – wadge
    Commented Apr 23, 2020 at 13:59
  • luit is used for this. Commented Apr 23, 2020 at 18:43

1 Answer 1

-1

I am using this command:

LC_MONETARY=de_DE.UTF-8 LC_TIME=de_DE.UTF-8 LC_MESSAGES=de_DE.UTF-8 LC_CTYPE=de_DE.UTF-8 LC_COLLATE=de_DE.UTF-8 LC_NUMERIC=de_DE.UTF-8 LANG=de_DE.UTF-8 gnome-terminal

to create a UTF-8 based window from an environment that is using the mille European default ISO-8859-1

You could do something similar but replace de_DE.UTF-8 with what you need.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .