Changeset 76 for pycgibattler/trunk
- Timestamp:
- 12/23/10 01:47:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pycgibattler/trunk/index.cgi
r75 r76 145 145 lc.lslide(i) 146 146 sk = lc.choose(skill_data) 147 skname = sk['name'].encode('utf-8' )147 skname = sk['name'].encode('utf-8', 'replace') 148 148 skpoint = sk['point'] 149 149 sktype = getattr(pycodebattler.skill, sk['type']) … … 212 212 tmpl.result = result 213 213 sys.stdout.write('Content-type: text/html; charset=UTF-8\r\n\r\n') 214 sys.stdout.write(tmpl.respond().encode('utf-8' ))214 sys.stdout.write(tmpl.respond().encode('utf-8', 'replace')) 215 215 sys.stdout.flush() 216 216
Note: See TracChangeset
for help on using the changeset viewer.