I have some perl code which is getting korean input from UI and storing it in database (Sybase). The input is sent as a request to a handler where response is JSON and JSONs are being encoded and decoded in utf8. However it is unable to print this on UI complaining about the following.
Wed Jun 15 16:08:06 2016] info 29922 Mojo::Reactor::EV: Write failed: Wide character in syswrite at /usr/lib/perl5/5.10.1/i386-linux/IO/Handle.pm line 465.
Only if I encode the data it prints on UI. Any help to print the data on UI in korean?