+ 2
Is possible to input and output Greek letters?
I tried it but it shows me something else and not the Greek letter I want. Is there any library for C++ for it (and works in CODE PLAYGROUND). Whatever I tried didn't work.
9 ответов
+ 8
Nope, SL compiler does not support Unicode which is what you need to access all languages.
+ 8
@Pixie, a lot of characters are missing though.
+ 6
https://code.sololearn.com/cQ22GGtNtq80/?ref=app
Greek letters obtained via ASCII set
+ 4
Yes. It doesnt support the language itself. Few important letters can be obtained. Thats's it.
+ 3
Good luck
+ 2
I am working in an algorithm which you input a greek letter or diphthong and it gives you how it is pronounced in english and other information like name, etc.
+ 2
Anyway I will continue it. If it will show it wrong I will give what this character that compiler shows really is as a comment into code.
+ 1
SoloLearn's default output codepage is 1252 (Windows):
https://code.sololearn.com/c6NQFsmNHz82/?ref=app
You can switch the output codepage as I do here (I used codepage 850 to fix the currency symbol). Just keep in mind that--if you have multibyte characters (I didn't check)--any pre- and post-processing (out of your control) may step all over your output. You may even end up with replacement characters (which essentially corrupts your output). Won't know until you try I guess.
The only thing(s) that support the range you're seeking "out of the box" are the Web codes (and by default that includes PHP). You can always ask if they'll support the codepage more clearly in their output console; just send feedback. Ideally, you'd send that with how they could do it in a way that is dead-simple for everyone (doesn't mean they would; you could also post code that anyone can #include).
0
Is there any way to suggest SoloLearn include Unicode in their compiler in a next update? Like contact them.