Htmltext and latin-1 characters
2006-05-10
Mike OrrRe: [Cheetahtemplate-discuss] Htmltext and latin-1
characters
2006-05-10
Ian BickingRe: [Cheetahtemplate-discuss] Htmltext and
latin-1 characters
2006-05-11
David BingerRe: [Cheetahtemplate-discuss] Htmltext and latin-1
characters
2006-05-10
Mike Orr2006-05-11
David Binger2006-05-11
Mike Orr2006-05-11
David Binger2006-05-11
David Binger2006-05-11
David Binger2006-05-13
Akihiro KAYAMA2006-05-13
Mike Orr2006-05-15
Akihiro KAYAMARe: Htmltext and latin-1 characters
2006-06-04
Neil Schemenauer2006-06-04
ak (2 parts)2006-06-06
Akihiro KAYAMARe: Htmltext and latin-1 characters
2006-06-05
Neil Schemenauer2006-06-05
Akihiro KAYAMA2006-06-05
Neil Schemenauer2006-06-05
Mike Orr2006-06-06
Neil Schemenauer2006-06-05
Mike OrrRe: [Cheetahtemplate-discuss] Htmltext and latin-1
characters
Mike Orr
On 5/10/06, Eric Sorooswrote: > > How about this? > > > > return unicode(val.s) # Cheetah > 1.0rc1 compatibility. > > > > UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in > > position 412: ordinal not in range(128) > > > > I've gotten this characer as some sort of space in an excel csv > file, and wound up killing it with > > fstr = unicode(str(f.read()), errors='ignore') > > But then, my target is very specific printable ascii, so ymmv. Actually, I made typo. B0 (degree sign) is the character we're getting. A0 (no-break space) was just the page I was viewing, which was generated by a test program that tries all possible characters. -- Mike Orr