Advertising (This ad goes away for registered users. You can Login or Register)

What encodage should i choose for programming?

Programming on your favorite platform, for your favorite platform? Post here
Locked
asgard20032
Posts: 186
Joined: Thu Jan 20, 2011 1:16 pm
Location: Milky Way, Solar system, Earth, North America, Canada, Québec..... In front of my computer

What encodage should i choose for programming?

Post by asgard20032 »

I know nothing in character encodage. I wanted to know, when we program, which character encodage should we take?

UTF-8, unicode......

And can someone explain me why should i take X one?
Advertising
Image
codestation
Big Beholder
Posts: 1660
Joined: Wed Jan 19, 2011 3:45 pm
Location: /dev/negi

Re: What encodage should i choose for programming?

Post by codestation »

There isn't much to say here: Use UTF-8. If you want some reasoning: is a subset of unicode, backwards compatible with ASCII encoding and covers every human character in the world. There is nothing more awful than someone in your team saving a source file in 8859-1 then another one in shift-jis, losing data in the process.
Advertising
Plugin list
Working on: QPSNProxy, QCMA - Open source content manager for the PS Vita
Playing: Error: ENOTIME
Repositories: github, google code
Just feel the code..
asgard20032
Posts: 186
Joined: Thu Jan 20, 2011 1:16 pm
Location: Milky Way, Solar system, Earth, North America, Canada, Québec..... In front of my computer

Re: What encodage should i choose for programming?

Post by asgard20032 »

codestation wrote:There isn't much to say here: Use UTF-8. If you want some reasoning: is a subset of unicode, backwards compatible with ASCII encoding and covers every human character in the world. There is nothing more awful than someone in your team saving a source file in 8859-1 then another one in shift-jis, losing data in the process.
Thanks, if i asked, its because i know nothing on character encoding. Does using UTF-8 require any change in a program? Or does the programmer don't see any difference, he get input same way, output same way, and iterate trough string(character array, its in C) same way?
Image
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: What encodage should i choose for programming?

Post by m0skit0 »

UTF-8 is Unicode too btw
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"
Locked

Return to “Programming”