Are file-port and string-port much different? I can convert strings in file but I want not to use file. My terminal charset is utf-8. Suppose there be a "XXX" encoded text file "a.txt", it would be converted like this:
I tried similar manner with string-port but failed. In real case, there is "XXX" encoded string. In this case, I cannot prepare it, so read it from a file.