Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 6th, 2006, 07:15 PM
metaperl.etc@gmail.com
Guest
 
Posts: n/a
Default building python with utf-8 default encoding?

I am playing around with OpenSwarm and was shocked to see that I cannot
build Python with default encoding of utf-8 by passing a flag to
configure... did I miss the option for doing so?

  #2  
Old November 6th, 2006, 08:05 PM
Robert Kern
Guest
 
Posts: n/a
Default Re: building python with utf-8 default encoding?

metaperl.etc@gmail.com wrote:
Quote:
I am playing around with OpenSwarm and was shocked to see that I cannot
build Python with default encoding of utf-8 by passing a flag to
configure... did I miss the option for doing so?
No. The default encoding (the return value of sys.getdefaultencoding()) should
alway be 'ascii'. Otherwise, programs written on one machine will not run on
other machines.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

  #3  
Old November 6th, 2006, 08:15 PM
Jim
Guest
 
Posts: n/a
Default Re: building python with utf-8 default encoding?


metaperl.etc@gmail.com wrote:
Quote:
I am playing around with OpenSwarm and was shocked to see that I cannot
build Python with default encoding of utf-8 by passing a flag to
configure... did I miss the option for doing so?
It is not set when you build but is instead set in sitecustomize.py.
But changing it is typically inadvisable in that any programs you write
will not port to other people's machines.

Jim

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles