+ 2

How to change my code?

I've got this code in Java: https://code.sololearn.com/cUuR1925nKoh/#java but I got an error, because I used strange signs (for example typing in Hindi). I got this: unmappable character for encoding Cp1252. I googled it and found that I should probably use UTF-8, but I have no idea how to add that in code. When I tried some of the things I found, they didn't work. Does anyone know how to fix this?

18th May 2017, 6:33 PM
Maart
Maart - avatar
10 ответов
+ 4
lol...
18th May 2017, 9:16 PM
jay
jay - avatar
+ 4
nope... but Java cat meme does make me think i should learn java
18th May 2017, 10:01 PM
jay
jay - avatar
+ 4
have u tried the charset method listed here: http://stackoverflow.com/questions/5729806/encode-string-to-utf-8 note the typo in the answer as noted directly underneath the answer
18th May 2017, 10:04 PM
jay
jay - avatar
+ 2
I'm not a bro ;) But rip strange languages then I guess
18th May 2017, 6:53 PM
Maart
Maart - avatar
+ 2
Yeah but I'm no dude either 😂
18th May 2017, 7:22 PM
Maart
Maart - avatar
+ 2
Yeah lmao Should I add [is a woman] in my username or? 😂
18th May 2017, 7:24 PM
Maart
Maart - avatar
+ 2
All jokes aside, you don't know how to fix it either Jay? (or COMPLEX who's spying :p)
18th May 2017, 9:52 PM
Maart
Maart - avatar
+ 2
I think I tried it with the typo in it, will check if it works tomorrow, thanks! Edit: I tried running it with the extra line but I'm getting 'no output' now.
18th May 2017, 10:06 PM
Maart
Maart - avatar
+ 1
Why don't you...
18th May 2017, 7:28 PM
Maart
Maart - avatar
+ 1
I've programmed in C# before, but don't know all about it. Done the course in C++, so only know the basics of that and tried out some things before in JavaScript. Now I'm sticking to Java
18th May 2017, 7:36 PM
Maart
Maart - avatar