kaklakariada / portmapper

A tool for managing port forwardings via UPnP
GNU General Public License v3.0
685 stars 89 forks source link

Scrambled characters #49

Closed BKCake closed 3 years ago

BKCake commented 4 years ago

PortMapper This happened when I open up, prob related to UTF-8 and GBK Since I am not very experienced in these stuff, I'm just gonna leave it here :)

My thoughts: The jar is prob wrote in UTF-8 but when I start it, it decode itself with GBK since somehow it think I use GBK

kaklakariada commented 4 years ago

Which locale do you use for your computer? Portmapper is also translated to Chinese. Maybe the encoding for Chinese is broken. Please try to start Portmapper in English by starting it on the command line:

java -Duser.language=en -jar portmapper.jar
1970633640 commented 4 years ago

@kaklakariada I use windows 10 in simplified Chinese and same problem happened. That command line to force start in English works. In my experience, Windows + Chinese is a disaster in command line or binary environment. There are GBK, Unicode, ANSI and UTF-8 messing with each other lol.