ANN: T602Parser 0.1
Text602 was a very popular word processor for IBM PC MS DOS compatibles, used in Czechoslovakia. T602Parser provides a simple class modelled after HTMLParser that can be used to parse Text602 documents (MS DOS version, not Win602) and to extract/convert data contained in them. Version: 0.1 (initial release) Author: Radovan Garabk License: GPL URL: http://kassiopeia.juls.savba.sk/~garabik/software/602/ -- --- | Radovan Garabk http://melkor.dnp.fmph.uniba.sk/~garabik/ | | __..--^^^--..__garabik @ kassiopeia.juls.savba.sk | --- Antivirus alert: file .signature infected by signature virus. Hi! I'm a signature virus! Copy me into your signature file to help me spread! -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
ANN: T602Parser 0.1
Text602 was a very popular word processor for IBM PC MS DOS compatibles, used in Czechoslovakia. T602Parser provides a simple class modelled after HTMLParser that can be used to parse Text602 documents (MS DOS version, not Win602) and to extract/convert data contained in them. Version: 0.1 (initial release) Author: Radovan Garabk License: GPL URL: http://kassiopeia.juls.savba.sk/~garabik/software/602/ -- --- | Radovan Garabk http://melkor.dnp.fmph.uniba.sk/~garabik/ | | __..--^^^--..__garabik @ kassiopeia.juls.savba.sk | --- Antivirus alert: file .signature infected by signature virus. Hi! I'm a signature virus! Copy me into your signature file to help me spread! -- http://mail.python.org/mailman/listinfo/python-list
Re: display VARCHAR(mysql) and special chars in html
Wolfram Kraus [EMAIL PROTECTED] wrote: Jonas Meurer wrote: hello, my script selects a comment saved as VARCHAR in MySQL and displays it inside an html page. the problem is, that the comment contains several special characters, as mysterious utf-8 hyphens, german umlauts, etc. i could write a function to parse the comment and substitute special chars with the relevant html code, but maybe this already exists in some module? if not, it'll be hard work, as i've to consider many special chars, and at least iso-8859-1* and utf-8 as charmaps. bye jonas If I understand you correctly, just put meta http-equiv=CONTENT-TYPE content=text/html; charset=utf-8 somewhere in the head-section of you HTML-Page. ... and make sure the deault charset of your HTTP server is *OFF* (or UTF-8), since it overrides the per-page setting (most unfortunate). -- --- | Radovan Garabk http://melkor.dnp.fmph.uniba.sk/~garabik/ | | __..--^^^--..__garabik @ kassiopeia.juls.savba.sk | --- Antivirus alert: file .signature infected by signature virus. Hi! I'm a signature virus! Copy me into your signature file to help me spread! -- http://mail.python.org/mailman/listinfo/python-list
Re: display VARCHAR(mysql) and special chars in html
Jonas Meurer [EMAIL PROTECTED] wrote: hello, my script selects a comment saved as VARCHAR in MySQL and displays it inside an html page. the problem is, that the comment contains several special characters, as mysterious utf-8 hyphens, german umlauts, etc. i could write a function to parse the comment and substitute special chars with the relevant html code, but maybe this already exists in some module? just make the page in utf-8, and you'll save you a lot of troubles if not, it'll be hard work, as i've to consider many special chars, and at least iso-8859-1* and utf-8 as charmaps. if you insist... a = u'\u010c' a.encode('ascii', 'xmlcharrefreplace') -- --- | Radovan Garabk http://melkor.dnp.fmph.uniba.sk/~garabik/ | | __..--^^^--..__garabik @ kassiopeia.juls.savba.sk | --- Antivirus alert: file .signature infected by signature virus. Hi! I'm a signature virus! Copy me into your signature file to help me spread! -- http://mail.python.org/mailman/listinfo/python-list
Re: Python unicode
Michel Claveau - abstraction mta-galactique non triviale en fuite perptuelle. [EMAIL PROTECTED] wrote: Hi ! and plain Latin letters But not all letters (no : etc.) ... and some more letters that are not latin (j,w,u,z) ok, I'd better shut up :-) -- --- | Radovan Garabk http://melkor.dnp.fmph.uniba.sk/~garabik/ | | __..--^^^--..__garabik @ kassiopeia.juls.savba.sk | --- Antivirus alert: file .signature infected by signature virus. Hi! I'm a signature virus! Copy me into your signature file to help me spread! -- http://mail.python.org/mailman/listinfo/python-list