Unicode universe (was Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 30))

From: Aahz (aahz_at_pythoncraft.com)
Date: 01/04/05


Date: 4 Jan 2005 10:18:15 -0500

In article <1104849206.111461.70500@c13g2000cwb.googlegroups.com>,
 <michele.simionato@gmail.com> wrote:
>
>BTW what's the difference between .encode and .decode ?
>(yes, I have been living in happy ASCII-land until now ... ;)

Here's the stark simple recipe: when you use Unicode, you *MUST* switch
to a Unicode-centric view of the universe. Therefore you encode *FROM*
Unicode and you decode *TO* Unicode. Period. It's similar to the way
floating point contaminates ints.

-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/
"19. A language that doesn't affect the way you think about programming,
is not worth knowing."  --Alan Perlis


Relevant Pages

  • Re: Program entry point question!
    ... and by always building for UNICODE. ... switch to TCHAR, LPTSTR, etc., which switch from char to WCHAR when ... I _strongly_ recommend taking some ... If you choose to use TCHAR ...
    (microsoft.public.windowsce.app.development)
  • Re: Unicode Mode
    ... The article explains Unicode, its benefits, and how to enforce it but not ... >> an error message when they attempt to setup their archive file using the ... >> in Unicode mode against Exchange server and cannot archive items to a ... I can't seem to find any documentation on how to switch from ...
    (microsoft.public.outlook.general)
  • Re: Another Cross Platform Delphi Tought
    ... We are currently developing a strategy for accessing that market - ... Unicode is of course essential. ... the tool (Delphi) didn't support it ... switch to ensure continuing default ANSI operation and THEN make the ...
    (borland.public.delphi.non-technical)
  • Re: Unicode in Delphi/VCL (yet again)
    ... > 'solution' to the lack of Win32 VCL unicode is daft. ... > Borland forces a fresh choice of environment, ... Many won't want to switch to ...
    (borland.public.delphi.non-technical)
  • Re: VC6->VC7 Warning C4005 with Warning lvl=3
    ... >warning: This appears to be related to the original stdafx.h file contents. ... >Is there an option or switch I have set wrong? ... Bill, ... The UNICODE preprocessor setting is done from the ...
    (microsoft.public.dotnet.languages.vc)