Changeset 5153


Ignore:
Timestamp:
Mar 18, 2015, 11:29:39 AM (5 years ago)
Author:
ldelgass
Message:

Set UTF-8 encoding on strings sent to render server in map viewer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/mapviewer.tcl

    r5136 r5153  
    12371237                    lappend cinfo "tool_command"  [$dataobj hints toolcommand]
    12381238                    lappend cinfo "tool_revision" [$dataobj hints toolrevision]
    1239                     lappend cinfo "dataset_label" [$dataobj hints label]
     1239                    lappend cinfo "dataset_label" [encoding convertto utf-8 $info(label)]
    12401240                    lappend cinfo "dataset_tag"   $layer
    12411241                    SendCmd "clientinfo [list $cinfo]"
     
    16231623            incr _labelCount
    16241624            set label "Label $_labelCount"
    1625             SendCmd [list "map" "pin" "add" $x $y $label]
     1625            SendCmd [list "map" "pin" "add" $x $y [encoding convertto utf-8 $label]]
    16261626        }
    16271627        "delete" {
     
    25432543        }
    25442544    }
    2545     SendCmd "[list map attrib [join $attrib ,]]"
     2545    SendCmd "[list map attrib [encoding convertto utf-8 [join $attrib ,]]]"
    25462546    label $f.map_attrib -text [join $attrib \n] -font "Arial 9"
    25472547    blt::table $f $row,0 $f.map_attrib -anchor sw -pady 2 -cspan 2
Note: See TracChangeset for help on using the changeset viewer.