Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Specify an input encoding to
NKF
to avoid misjudgement
NKF sometimes misjudges an encoding. For example `カソウシテン` isn't judged correctly. ```ruby NKF.guess('カソウシテン'.encode("Windows-31J")) => #<Encoding:EUC-JP> ``` This causes misconverting. The previous word converts like this. ```ruby NKF.nkf('-w', 'カソウシテン'.encode("Windows-31J")) => "郷骸竹" ``` The specifying input encoding prevent this. ```ruby NKF.nkf('-S -w', 'カソウシテン'.encode("Windows-31J")) => "カソウシテン" ``` Fixes #33.
- Loading branch information