Reading Arabic in a PuTTY Connection
0
When using PuTTY to connect to your production or deployment servers, either to inspect a log file or to run a MySQL command, have you ever wished that you can read those characters instead of using two or three other tools just to inspect a server log? Frankly, I did!
In the PuTTY Configuration window, by selecting Translation from under the Window section on the left, you can change the character-set that the received data will be assumed to be in. Selecting UTF-8 changed the world for me. By doing this you can see all Arabic text in the server log crystal clear.
Maybe this is not new to some of us, but at least my team will be happy due to this discovery, and of course it was very handy for me.
If you are going to play with MySQL queries, appending the option
"--default-character-set=utf8"
to the connection command:
mysql -u username -p -h server_address db_name –default-character-set=utf8
will let you read Arabic fields in your database.
Also, if the connection is already established, you can use the \C command
>\C utf8 and
and you will get the same result.
Now, go enjoy your new translated server log.
Written By:
Mohammad Badrah (crunching-thoughts.blogspot.
Post a Comment
eSpace podcast Prodcast
Archive
Latest Comments
- SpectraMind Commented on Egypt Wins UK's National Outsourcing Association Award
- Rofaida Awad Commented on Go Egypt Go!
- Different Mike Commented on Only idiots change their iPhone root password!
- Mike Commented on Only idiots change their iPhone root password!
- smile Commented on Only idiots change their iPhone root password!

