mirror of
https://github.com/msikma/pokesprite.git
synced 2026-09-07 18:05:10 -05:00
Script to get JSON output for Japanese characters
This commit is contained in:
8
scripts/jsonjp.py
Executable file
8
scripts/jsonjp.py
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# prints JSON-usable japanese
|
||||
# example: $ ./jsonjp.py モクロー
|
||||
# output: "\u30e2\u30af\u30ed\u30fc"
|
||||
import json
|
||||
import sys
|
||||
print(json.dumps(sys.argv[1]))
|
||||
Reference in New Issue
Block a user