Quoting Dan Jacobson (2023-04-13 22:13:23) > I get > 2 n.txt > C.UTF-8: 2 > zh_CN.UTF-8: 5 > zh_TW.UTF-8: 5
Try replace this line in your script: echo 郵編123 > $t with this: LC_ALL=C.UTF-8 echo 郵編123 > $t Otherwise the script will be conditional to locale of testing environment for *creation* of the text, which then affects conversion. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ * Sponsorship: https://ko-fi.com/drjones [x] quote me freely [ ] ask before reusing [ ] keep private