Bug report #10624

Default value in string parameter in the GUI modeler

Added by Etienne Trimaille over 10 years ago. Updated over 9 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Processing/Core
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:19027

Description

I get this error while trying to put this default value in string parameter :

<osm-script output="json" timeout="25">
  <!-- gather results -->
  <union>
    <!-- query part for: “shop=supermarket” -->
    <query type="node">
      <has-kv k="shop" v="supermarket"/>
      <bbox-query {{bbox}}/>
    </query>
    <query type="way">
      <has-kv k="shop" v="supermarket"/>
      <bbox-query {{bbox}}/>
    </query>
    <query type="relation">
      <has-kv k="shop" v="supermarket"/>
      <bbox-query {{bbox}}/>
    </query>
  </union>
  <!-- print results -->
  <print mode="body"/>
  <recurse type="down"/>
  <print mode="skeleton" order="quadtile"/>
</osm-script>

Traceback (most recent call last):
  File "/home/etienne/.qgis2/python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py", line 327, in okPressed
    str(self.defaultTextBox.text()))
UnicodeEncodeError: 'ascii' codec can't encode character u'\\u201c' in position 84: ordinal not in range(128)

Associated revisions

Revision 5476d86f
Added by Etienne Trimaille over 10 years ago

change str to unicode fix #10624

Revision 2f5d118d
Added by Victor Olaya over 10 years ago

Merge pull request #1496 from Gustry/dev

[processing] change str to unicode fix #10624

Revision eb832564
Added by Etienne Trimaille over 10 years ago

change str to unicode fix #10624

History

#1 Updated by Giovanni Manghi over 10 years ago

  • Affected QGIS version changed from 2.2.0 to master
  • Target version deleted (Future Release - Lower Priority)

#2 Updated by Victor Olaya over 10 years ago

  • Status changed from Open to Closed

#3 Updated by Giovanni Manghi over 9 years ago

  • Category changed from 94 to Processing/Core

Also available in: Atom PDF