0

I'm searching for a simple windows (command line) tool which converts all non-ascii characters in a file to HTML numeric codes.

I found uni2ascii for linux, which does exactly what we want, but we need a tool for windows. In uni2ascii, the corresponding command would be:

uni2ascii -a H input.json -q 

Example input:

{"title":"Профил"}

Output:

{"title":"Профил"}
  • If it is in Ubuntu I would assume it is also in WSL. Did a quick Google search and it appears uni2ascii has been ported to Windows by several developers. – Squashman May 26 '21 at 17:08
  • @JeffZeitlin Yes, the script in that answer answers my question. I'm just wondering why I didn't find it... – user1078445 May 26 '21 at 17:27
  • I thing winthout external tools you can use this [solution](https://stackoverflow.com/questions/42083043/). – Daemon-5 May 27 '21 at 04:28
  • @Daemon-5 - No, it appears that that "solution" is actually for going in the other direction - i.e., you HAVE URLEncoded/HTMLEntity, and you want the actual character; what the querent is saying is that he HAS actual character and WANTS URLEncoded/HTMLEntity. – Jeff Zeitlin May 27 '21 at 11:34
  • My mistake. I gave the wrong link. It should be [mshta-usage](https://stackoverflow.com/questions/35186560/) – Daemon-5 May 29 '21 at 14:52

0 Answers0