nkf recognizes an input text in wrong encoding.

Solution Verified - Updated -

Issue

  • nkf recognizes an input text in wrong encoding.
  • It does not match text before conversion and converted text.
$ echo $LANG
ja_JP.UTF-8
$ echo "齋藤" | nkf -w
鮨玖陸

Environment

  • nkf

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.