Re: updates
Peter Bowen <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 2003-10-25 at 01:41, seth vidal wrote: > > option 1: > > doing a 'try, except' conditional and if it fails, bailing on the rpm. > > option 2. > > doing a 'try, except' conditional and if it fails, warning, and > > replacing the string with 'GET THE PACKAGER TO WRITE IN ASCII OR UTF8' > > or something equally as caustic. > > option 3: > 'try, except' - on failure, do the ordinal test char by char in the > string and replace/remove the offending character(s) I would suggest option 3. Just assume any character > 127 is evil if the string isn't UTF-8, and replace it with '?'. Technically you can do better, but it probably isn't worth the time. Thanks. Peter