I would like to create a map with japanese character. eg,
Map<String, String> map = new HashMap<String, String>();
map.put("あ","ア");
map.put("え","イ");
map.put("お","オ");
map.put("え","エ");
map.put("お","オ");
String str = "あaいiうuえeおo";
Result = アaイiウuエeオo
But I want to put only unicode for japanese characters and I want to compare input string with key of map, then change it to respective value. How do I change each letter of String str to unicode. How do I compare each letter in a String with keys of a Map using unicode? If each letter exists as a key of the map, change it with respective map value. Thanks.