View Issue Details

IDProjectCategoryView StatusLast Update
0015981ScribusScripterpublic2019-12-02 05:12
ReporterGibbz Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Product Version1.5.6.svn 
Target VersionFixed in Version 
Summary0015981: scripter crash/error
DescriptionI have a simple script which runs over a document and outputs all text fields into a text file, for easy spell checking.
I have attached the sample with the script.


Steps To ReproduceOpen the test file, run the script text_output.
I get the following error:

Traceback (most recent call last):
  File "<string>", line 10, in <module>
  File "<string>", line 31, in <module>
  File "<string>", line 27, in main
  File "<string>", line 10, in write
  File "C:\Apps\Scribus\python\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2028' in position 360: character maps to <undefined>
TagsNo tags attached.
PatchNo

Activities

Gibbz

2019-12-02 01:04

reporter  

test.zip (208,960 bytes)

jghali

2019-12-02 05:12

administrator   ~0047186

Not a Scribus bug. The message is clear: you are trying to convert a Python Unicode object to cp1252 encoding with the unicode object containing characters not supported by cp1252 encoding.

Issue History

Date Modified Username Field Change
2019-12-02 01:04 Gibbz New Issue
2019-12-02 01:04 Gibbz File Added: test.zip
2019-12-02 05:12 jghali Assigned To => jghali
2019-12-02 05:12 jghali Status new => resolved
2019-12-02 05:12 jghali Resolution open => no change required
2019-12-02 05:12 jghali Note Added: 0047186
2019-12-02 05:12 jghali Status resolved => closed