[MonoDevelop] problem with diacritics (accents etc)

Ian Greenhoe ian at ihgreenman.com
Thu Oct 29 12:49:19 EDT 2009


On Mon, 2009-10-26 at 18:14 +0000, Mark Kane wrote: 
> Hi Ian,
> 
> What operating system are you using? I'm using Mac OS X 10.5.8.

Linux Debian (Testing).

> I tried the search-->find idea and it can find a diacritic character
> with no problem in the text editing window of monodevelop. My problem
> seems just to be related to the application output window. So I tried
> changing fonts of the application window, however this did not work.

I've had many problems in the past with international characters, and
many times I've tracked them back to font issues -- change the font, and
the problem goes away.  AFAICT, Monodevelop uses the same font for the
main interface as it does for the output window, so this eliminates this
scenario. (Someone please correct me if I'm wrong.)

Since we have eliminated a font issue (?), this suggests that something
between your mono program and the output window is squashing the output.

> Once I found I could no longer make progress with the application
> output wrt diacritics, my next step was to check and see if I could
> read in and write out diacritic characters to a file. This proved not
> to be a problem. Outputted files were viewed using VIM with no
> problem.

Good. This means that mono I18N is not fundamentally broken on the
Mac.  ;)

> As for viewing diacritics in the application window, the following
> example holds true for me.
> 
> string str = "é";
> Console.WriteLine(str);
> 
> *** output ***
> ?
> 
> str = str.Replace("é","e");
> Console.WriteLine(str);
> 
> *** output ***
> e
> 
> Furthermore, I tried running the code above from a terminal with both
> UTF-8 and Latin-1 with no change in results.

What happens when you cat the contents of either your source code or the
test file to the terminal?

-Ian




More information about the Monodevelop-list mailing list