Changeset 2175 for trunk/lang/tcl/scripts
- Timestamp:
- Mar 30, 2011 1:45:19 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lang/tcl/scripts/library.tcl
r2134 r2175 509 509 return "" 510 510 } 511 # Expat (via tDOM) will always produce utf-8 output, regardless of the 512 # encoding of the tool.xml. We need to convert utf-8 to unicode for 513 # Tcl/Tk. This shouldn't affect ASCII tool.xml files. 514 set string [encoding convertfrom utf-8 [$node text]] 511 515 if {$params(-decode) == "yes"} { 512 return [Rappture::encoding::decode -- [string trim [$node text]]] 513 } else { 514 return [string trim [$node text]] 515 } 516 set string [Rappture::encoding::decode -- $string] 517 } 518 return [string trim $string] 516 519 } 517 520
Note: See TracChangeset
for help on using the changeset viewer.