Print locale dependent strings

Registered by bigbes

Now, if you use multibyte encoding for STR type, when you'll use c-client print you'll get not what you've typed. Also --cat option prints the same sh*t because it uses the same tp_print_field function.
e.g. when you use Russian language with UTF-8 you'll get:

localhost> insert into t0 values (1, 'привет мир')
Insert OK, 1 rows affected
localhost> select * from t0 where k0=1
Select OK, 1 rows affected
['1', '\xD0\xBF\xD1\x80\xD0\xB8\xD0\xB2\xD0\xB5\xD1\x82 \xD0\xBC\xD0\xB8\xD1\x80']

but if locale allows you to print Russian characters, you want to see smth like this:

localhost> select * from t0 where k0=1
Select OK, 1 rows affected
['1', 'привет мир']

Blueprint information

Status:
Complete
Approver:
Dmitry Simonenko
Priority:
Medium
Drafter:
bigbes
Direction:
Approved
Assignee:
bigbes
Definition:
New
Series goal:
Proposed for 1.5
Implementation:
Implemented
Milestone target:
milestone icon 1.5.1
Started by
bigbes
Completed by
bigbes

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.