tom wible wrote:
i've recently installed 2.6 on my minimac pvr, and it raised a
unicode issue:
under 2.5, the filename returned from an applescript.app is plain
text:
[...]
>>> sfn
u'New York Goes To War_Jan_17_2009__08_00_26-1_AM.m2t'
[...]
but under 2.6:
[...]
>>> sfn
u'\u4e00\u6500\u77
On Sat, Feb 21, 2009 at 07:44:12AM -0500, tom wible wrote:
> i had simply copied aem from the 2.5 site-packages to the 2.6's...is there
> something i missed in doing that? some data is ok (the dates)
Looks like you might have a UCS-4 version of one Python and a UCS-2
version of the other. Extens
i've recently installed 2.6 on my minimac pvr, and it raised a unicode issue:
under 2.5, the filename returned from an applescript.app is plain text:
tomsdvr:/DVR/recordings dvr$ /usr/local/bin/python2.5
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363
Thanks to everyone who replied!
I'll take a further look into the encoding of the file because I'm
interested in that for other reasons. In the output I saw, u"\xe1" (and a
few others I found after sending my note) were prevalent around the splits.
For the moment, though, I've solved my immediate
Jeremy Reichman wrote:
I have some characters in line strings in a file I'm processing that appear
to be Unicode. (When I print them to the shell from my script, they are
Asian characters for files like fonts in the Mac OS X filesystem.)
When I run a.split() on the affected line strings, they sp
I have some characters in line strings in a file I'm processing that appear
to be Unicode. (When I print them to the shell from my script, they are
Asian characters for files like fonts in the Mac OS X filesystem.)
When I run a.split() on the affected line strings, they split on what I'm
guessing
Am 2008-03-18 um 20:13 schrieb has:
>> E.g. I had big problems with Finder labels - often got "16393" as
>> label_index for some tries, until finally the right number showed
>> up. Can't reproduce that any more, without changing my installation.
>
> Sounds very odd. Doubt the problem is coming from
Henning Hraban Ramm wrote:
>> I struggled a lot with paths containing non-ASCII characters.
>> Hmmm. Is this with the 0.18.1 release? Do you get the same problem
>> with the current appscript trunk?
>
> Sorry - since yesterday it works (with 0.18.1).
> Some problems with appscript seem to appear o
Am 2008-03-15 um 21:37 schrieb has:
> Henning Hraban Ramm wrote:
>> I struggled a lot with paths containing non-ASCII characters.
> Hmmm. Is this with the 0.18.1 release? Do you get the same problem
> with the current appscript trunk?
Sorry - since yesterday it works (with 0.18.1).
Some problems
Henning Hraban Ramm wrote:
> I struggled a lot with paths containing non-ASCII characters.
Hmmm. Is this with the 0.18.1 release? Do you get the same problem
with the current appscript trunk?
Ta,
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourcef
Good article link, Thanks.
On Mar 14, 2007, at 9:18 PM, Bob Ippolito wrote:
> Here's a very recent, well written and pertinent article:
>
> http://boodebr.org/main/python/all-about-python-and-unicode
>
> -bob
> ___
> Pythonmac-SIG maillist - Pythonmac
Here's a very recent, well written and pertinent article:
http://boodebr.org/main/python/all-about-python-and-unicode
-bob
On 3/14/07, Dougal Graham <[EMAIL PROTECTED]> wrote:
> Thanks for the quick reply! As I'm sure you can tell, I'm still fairly
> new to Python. Do you know of a tutorial on h
Thanks for the quick reply! As I'm sure you can tell, I'm still fairly
new to Python. Do you know of a tutorial on how to properly manage
unicode in Python, then?
I ran into trouble when trying to run a command containing unicode
characters through commands.getoutput()...
On 3/15/07, Bob Ippolito
On 3/14/07, Dougal Graham <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I am having a problem with figuring out how to set utf-8 as the
> default encoding for python. I have found various references to
> sitecustomize.py, but I'm not sure where to put that file. I just
> recently updated to python 2.5
Hi there,
I am having a problem with figuring out how to set utf-8 as the
default encoding for python. I have found various references to
sitecustomize.py, but I'm not sure where to put that file. I just
recently updated to python 2.5 using the .dmg file from python.org.
Any help would be greatly
> Bob Ippolito <[EMAIL PROTECTED]> (BI) wrote:
> import sys
> sys.getfilesystemencoding()
>BI> 'utf-8'
It is UTF-8, but you must be careful: the filenames are in normalized (or
whatever they call it) UTF-8, meaning that accented letters are split up
into the letter followed by the acc
On Jul 14, 2005, at 9:17 AM, Nick Matsakis wrote:
>
> On Wed, 13 Jul 2005, Bob Ippolito wrote:
>
>
>> HFS actually uses UTF-16 internally, but the POSIX layer is UTF-8.
>> It will bite you if you expect the code to work on other platforms.
>> Not all platforms use UTF-8 for their filesystem encod
On Wed, 13 Jul 2005, Bob Ippolito wrote:
> HFS actually uses UTF-16 internally, but the POSIX layer is UTF-8.
> It will bite you if you expect the code to work on other platforms.
> Not all platforms use UTF-8 for their filesystem encoding.
I don't care about other platforms, but I assume from y
On Jul 13, 2005, at 6:05 PM, Nick Matsakis wrote:
>
> What is the best way to deal with non-ASCII paths when working with
> the
> python standard library? Specifically, when using functions like
> open()
> and the os and glob modules, what should be passed in? What should I
> expect out?
If
What is the best way to deal with non-ASCII paths when working with the
python standard library? Specifically, when using functions like open()
and the os and glob modules, what should be passed in? What should I
expect out?
In experimenting with it, it appears that these libraries accept str
ob
20 matches
Mail list logo