From owner-freebsd-questions@FreeBSD.ORG Sat Feb 9 15:45:44 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D366F16A41A for ; Sat, 9 Feb 2008 15:45:44 +0000 (UTC) (envelope-from ericsbinaryworld@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id 8F17813C4D1 for ; Sat, 9 Feb 2008 15:45:44 +0000 (UTC) (envelope-from ericsbinaryworld@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so5953113pyb.10 for ; Sat, 09 Feb 2008 07:45:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=xVpJVYdF665lgKgYBI2LpReSExzATQsSdHZDrlI/XsM=; b=fp7mpPlIQZW6zhh/Is9wAKoP1q1EI7X8exsQ+UiUgE7MwBvbkZFrUuq7TybDHLHtIeAinV1AcEa7k5k57SMZw3gzvbRGOElI0IvwxZ7KlqYbktvBeV6mi/1CNduuzhY8QRKsiYSma9XOE6zvRdZtOQ/scf/V1ohm5d06wWtVlJg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=D0WbyzSgTCVnVlT/TezAPX5sJRp5TMK1cqR6vo32kW6+QROc7E44QPe5ea+Yk5kcJBHcRpPJKwMPeNkYqkALjdWbEQqKkH1NQzW7z+zpMfQ4n444WiDZSjkwtmbu7esfkWPW16IyiNjYD54y33UjYkLO0TNCDrc2QNbWKCvvEbs= Received: by 10.142.135.9 with SMTP id i9mr7531808wfd.212.1202571942913; Sat, 09 Feb 2008 07:45:42 -0800 (PST) Received: by 10.143.187.1 with HTTP; Sat, 9 Feb 2008 07:45:42 -0800 (PST) Message-ID: <582715960802090745y8a4eaewcac6e033f944a21@mail.gmail.com> Date: Sat, 9 Feb 2008 10:45:42 -0500 From: "Eric Mesa" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: How do I get unicode support in python? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Feb 2008 15:45:44 -0000 Message: 12 > Date: Fri, 8 Feb 2008 16:06:50 +0100 > From: "Heiko Wundram (Beenic)" > Subject: Re: How do I get unicode support in python? > 0: ordinal not in range(128) > >>> print u"\xfa".encode("latin-1") > =FA > >>> > > HTH! > > -- > Heiko Wundram > Product & Application Development > > > ------------------------------ > > > The .encode solution worked perfectly for me! I am using it for the page you get when you fill out the year here: http://server.ericsbinaryworld.com/viet_zodiac_intro.html (right now you have to switch to utf-8, I haven't set it to do that automatically yet) Thanks again! --=20 Eric Mesa http://www.ericsbinaryworld.com http://server.ericsbinaryworld.com "Do not worry about those things that are outside of your circle of influence. For since they are outside of your power to control them it is simply a waste of time and energy to dwell on them. Instead, turn your attention to those things that you can control and grow your influence in those areas and you will see the effects begin to trickle out to those item= s that were previously out of your power to influence." =96 Eric Mesa inspire= d by Covey's 7 Habits of Highly Effective People