~mvo/software-center/proper-error-on-unknown-files

« back to all changes in this revision

Viewing changes to softwarestore/utils.py

  • Committer: Michael Vogt
  • Date: 2009-09-02 12:10:54 UTC
  • mfrom: (87.1.36 webkit)
  • Revision ID: michael.vogt@ubuntu.com-20090902121054-w1e23d55m193zd90
merge the webkit branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
 
 
3
 
 
4
def encode_for_xml(unicode_data, encoding="ascii"):
 
5
    return unicode_data.encode(encoding, 'xmlcharrefreplace')