I want to display an umlauted e. I find that chr(235) provides the desired character in postgresql when displayed in a web browser: [db_string foo "select chr(235)"].
But I have this helper proc that I use pervasively:
proc_doc ad_space_to_nbsp { s } {
replaces all instances of " " in s with " "
} {
return [string map [list { } { }] $s]
}
ad_space_to_nbsp [db_string foo "select chr(235)"]
corrupts my e into something funky. If I write _to_nbsp as a regsub instead I get the same result.
What's wrong? Is there a quick fix?
Request notifications