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.

Kj [/.] Sreekumar programs computers as a hobby and profession. Into programming from his school days, Sree uses Codemarvels to key in facts and fixes he finds interesting while working on different projects. Some of the articles here give away a few shades of his philosophical leanings too.

Leave a Comment

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