[Python-Dev] ascii default encoding

Jack Jansen jack@oratrix.nl
Tue, 18 Jul 2000 11:54:26 +0200


> > On the Macintosh string.whitespace is '\011\012\013\014\015 \312', bu=
t =

> > the \312 causes problems because it can't be converted from/to unicod=
e =

> > as long as the default encoding is ascii...
> =

> on windows and unix boxes, the default locale is "posix" (aka "C"),
> which in practice means "plain ascii".  the only way to end up with
> non-ascii characters in whitespace/uppercase/lowercase/etc is to
> explicitly change the locale (by calling locale.setlocale).

On the Mac, under CodeWarrior, the default locale (and, actually, the onl=
y =

locale) is "C", and it uses the mac-roman charset, so including the upper=
 128 =

characters.
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++=

Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig =
++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.=
htm =