How to lowercase a unicode character?

Just starting out? Need help? Post your questions and find answers here.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

As I mentioned, you don't need Unicode for that particular example
Yes I do. If create unicode is not checked, the console won't print the string (the 'U') correctly.
superadnim
Enthusiast
Enthusiast
Posts: 480
Joined: Thu Jul 27, 2006 4:06 am

Post by superadnim »

I refer to your specific example AND the purebasic routines, not the console.

But anyway, again NO:

Code: Select all

OpenConsole()
PrintN(Chr(220))
PrintN(Chr(252))
While Inkey() = ""
Wend
CloseConsole()
End
period?
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

superadnim wrote:
mubinaktan wrote:
utopiomania wrote:This works here if compiled to unicode:

Code: Select all

openConsole() 

s.s = "Deutschland ÜBER Alles"
charLower_(@s)
printN(s)

s.s = "Deutschland ÜBER Alles"
charUpper_(@s)
printN(s)

while inkey() = ""
wend

closeConsole()
end 

Oh, yeah, that worked! But a little explanation would be nice. What the hell "CharUpper_" and "CharLower_"? If they are built-in functions why don't the autocompletion recognize them?

P.S.: Is it forbidden to say "Deutschland über alles" in Germany? That's interesting... So it should be forbidden to say "God save the Queen" in United Kingdom, "Viva Espana" in Spain or "Gooooaaaaal !!!" in Brazil... :lol:

.
Don't forget about "Viva perón"

As I mentioned, you don't need Unicode for that particular example, and Trond also affirmed it, because it's an ascii character. debug from 0 to 255 and you'll see all the characters ascii supports.

The Win-API calls are OK, as long as you don't plan to port your code into Linux / MacOS.
This is not necessarily true. Characters over 127 ascii can appear differently on different systems based on regional settings and it's not just dependant on font
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Baslo
New User
New User
Posts: 9
Joined: Tue Oct 30, 2007 1:11 pm
Location: Beth Aramaye

Post by Baslo »

To make it clear:

It is forbidden to sing THIS part of the german anthem. I'm not german, but i live in germany. Translated: "Germany Above All...." and this correlates pretty much with the ideology of "Supreme Race" and so on .... "brown stuff" as the germans nowadays call it.
superadnim
Enthusiast
Enthusiast
Posts: 480
Joined: Thu Jul 27, 2006 4:06 am

Post by superadnim »

Try and change the past suppressing the present.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

It's neither forbidden nor current nor "ünicode".
Baslo wrote:To make it clear:

It is forbidden to sing THIS part of the german anthem. I'm not german, but i live in germany. Translated: "Germany Above All...." and this correlates pretty much with the ideology of "Supreme Race" and so on .... "brown stuff" as the germans nowadays call it.
http://facetroughgemstones.com/wikipedia/da/Das_Lied_der_Deutschen.html wrote:The first two stanzas are not actually forbidden, but they are never sung on official occasions.
http://david.national-anthems.net/de.htm wrote:Contrary to popular belief, no stanza is currently forbidden to be sung, however, only the third stanza is the official national anthem.
http://archives.tcm.ie/irishexaminer/2007/02/20/story25880.asp wrote:When east and west were united in 1990, it was agreed that in future, the third verse of Deutschland Uber Alles would be the official anthem of the reunified country. So, while Germany Above All hasn’t been forbidden, these are the official words now:

“Unity and Right and Freedom for the German Fatherland!
After these let us all strive brotherly with heart and hand!”
Baslo
New User
New User
Posts: 9
Joined: Tue Oct 30, 2007 1:11 pm
Location: Beth Aramaye

Post by Baslo »

Honestly, i didnt know that, but well thats only on the paper.

On Demonstrations (happens quite often here in Berlin) the police just waits for the nazis to start singing this part so they can arrest them. So maybe you cant be punished explicitly for the singing, but for other reasons that relate to this.

Anyways, Nazis suck and back to topic....
Post Reply