Hi! I am having a problem with encoding and I am not sure if it is a bug or
if it is correct. I copy Pier and Pharo mailing list.

I am in Linux and when I write a double quote I write something like this:
"Muelle Almirante Storni"

If I write in OpenOffice, when I type the double quote key, OpenOffice
writes something like this:  “Muelle Almirante Storni”

Notice that the quotes are these last ones are twisted and the first were
straight.


If I copy paste "Muelle Almirante Storni"  in a workspace of Pharo, it is
perfectly understood. But if I paste  I get:
  ?Muelle Almirante Storni?

Now...I am developing a pier application my main problem is that my
"functional information" is in .doc so they that the twisted ones. As they
are put in the image trought Pier and a KomEncoded, there is not
problem....until I try to search on the string. If I evaluate:

' “Muelle Almirante Storni”' findString: 'esquel' startingAt: 1
caseSensitive: false
This has a problem (index out of range) because internaly it tries to ask
the asciiValue and this answers 2881 -> absurd

Now, my solution is everytime I copy paste the text from a .doc to a Pier
page I have to replace those twisted quotes for the straight ones.

Is this a bug? or it is just like this ?

thanks

mariano
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to