My system language is not Japanese, but my user language/encoding is. Using shell things in terminal emulators 'directly' works okay, but it seems that 'behind the scene' stuff does not.
保存 = Save for example.
This gets displayed correctly when I use X stuff 'directly' (as in, I open a terminal emulator or GUI program and mess with it directly) But running stuff in the background (using dmenu, in the xmonad WM ) it turns out that what gets fed into scripts is not something I can string compare to, but something like this:
gets turned into
How do I generate this myself? I only got the escaped value string from this by putting a copy paste thing into the script.
I'm fine with doing a pre-pass that translates such an escaped value string into a 'proper' one that then gets case matched later.
I would simply like to generate such an escaped value string myself without the roundabout hack.