how to implement UTF-8

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: how to implement UTF-8

Post by Solar »

Yep. José won't be amused. ;)
Every good solution is obvious once you've found it.
User avatar
AndrewAPrice
Member
Member
Posts: 2306
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: how to implement UTF-8

Post by AndrewAPrice »

Even if you do implement a wide character set, I would recommend perhaps learning a language that requires these characters, and develop your OS also in this language, otherwise you may end up with patchy support and some things may break.
My OS is Perception.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: how to implement UTF-8

Post by Combuster »

Learn another language? My keyboard alone needs unicode support to work properly :)

(courtesy of the € and ¾ characters)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: how to implement UTF-8

Post by jal »

Combuster wrote:(courtesy of the € and ¾ characters)
What outlandish keyboard do you use? I don't think the Dutch keyboard has 3/4?


JAL
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: how to implement UTF-8

Post by Combuster »

The dutch layout does have the ¾ key (AltGr+6)

Google images got me this (which is exactly what my keyboard contains):
Image
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
AndrewAPrice
Member
Member
Posts: 2306
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Re: how to implement UTF-8

Post by AndrewAPrice »

I've seen computer from back in the 80s in Australia and most used the British keyboard layout:
Image

But virtually every computer you find in Australia now has the US standard layout:
Image

I thought not being in the US, we would use a US International keyboard (the one with AltGr). Though logically it doesn't make sense to need the other currencies (we use the dollar ($)) or the accented letters (most English words rarely use accented characters), I think it would be helpful to have ¼ ½ ¾ ’ ©. - Actually, there is no reason I can't simply set my keyboard to US international and add the labels next to my keys!

Edit: it works!¿! :D
Last edited by AndrewAPrice on Tue Mar 10, 2009 5:12 am, edited 1 time in total.
My OS is Perception.
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: how to implement UTF-8

Post by jal »

Combuster wrote:The dutch layout does have the ¾ key (AltGr+6)
Yeah, you are right. Here at work I have a Dutch keyboard layout (though set to US). At home I've got a normal US layout, so I couldn't check last night.


JAL
Post Reply