Hi,
How do I "evaluate" the \\special letters?
x='legend\\u00e4ren Sinnspr\\u00fcchen verf\\u00fchrte'
Idea: How can I get the (interpreted!) output of print (what is shown on the screen) into a variable?
[ 1) output is not what is shown on the screen, 2) print has no ouput ]
Hi,
How do I "evaluate" the \\special letters?
x='legend\\u00e4ren Sinnspr\\u00fcchen verf\\u00fchrte'
Idea: How can I get the (interpreted!) output of print (what is shown on the screen) into a variable?
[ 1) output is not what is shown on the screen, 2) print has no ouput ]
Quoting Die Optimisten (inform@die-optimisten.net):
Hi,
How do I "evaluate" the \\special letters?
x='legend\\u00e4ren Sinnspr\\u00fcchen verf\\u00fchrte'
Idea: How can I get the (interpreted!) output of print (what is shown on
the screen) into a variable?
[ 1) output is not what is shown on the screen, 2) print has no ouput ]
Your mail is not very clear, I am afraid. What I can tell you is that
I can save a string with proper umlauts in a variable like this:
x="legend\u00e4ren Sinnspr\u00fcchen verf\u00fchrte"
puts x
legendären Sinnsprüchen verführte
Note the double quotes in place of single quotes, and the single
backslashes. Double quotes make sure that escape sequences are
converted. If you then put double backslashes, they are converted to
single backslashes, but they do then not escape the next character.
Carlo
···
Subject: string -- double interpretion
Date: sab 22 ott 16 09:35:25 +0200
--
* Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
* di parlare tanto di amore e di rettitudine? (Chuang-Tzu)