UTF-8 breaks on Ubuntu (minimal install) server applications

Problem : UTF-8 content is displayed and treated as garbage (eg: DL4J vector search misses all the time)

Reason: User’s default encoding not set to UTF-8.

Fix: Set default encoding to UTF-8

Edit ~/.profile to include this –

export LC_CTYPE=en_US.UTF-8

Save, logout of SSH, login back and restart applications.

Leave a Reply

Your email address will not be published. Required fields are marked *


* Copy This Password *

* Type Or Paste Password Here *

68,488 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>