+ 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.

7th May 2017, 5:16 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar
9 ответов
+ 8
Nope, SL compiler does not support Unicode which is what you need to access all languages.
7th May 2017, 5:18 PM
Karl T.
Karl T. - avatar
+ 8
@Pixie, a lot of characters are missing though.
7th May 2017, 5:24 PM
Karl T.
Karl T. - avatar
+ 6
https://code.sololearn.com/cQ22GGtNtq80/?ref=app Greek letters obtained via ASCII set
7th May 2017, 5:20 PM
Pixie
Pixie - avatar
+ 4
Yes. It doesnt support the language itself. Few important letters can be obtained. Thats's it.
7th May 2017, 5:25 PM
Pixie
Pixie - avatar
+ 3
Good luck
7th May 2017, 5:50 PM
Pixie
Pixie - avatar
+ 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.
7th May 2017, 5:47 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar
+ 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.
7th May 2017, 5:50 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar
+ 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).
7th May 2017, 6:21 PM
Kirk Schafer
Kirk Schafer - avatar
0
Is there any way to suggest SoloLearn include Unicode in their compiler in a next update? Like contact them.
7th May 2017, 5:51 PM
Γιάννης Δημητριάδης
Γιάννης Δημητριάδης - avatar