|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
problem with diacritics (accents etc)Hi all,
I have a short question about using diacritics (for example accents: é, á etc) in monodevelop with respect to C-sharp. The problem is best summed up in one line of code: Console.writeline("é"); This results in the following output: ? So my question is, how do we get the following output? é This is my first post and I do hope this is the appropriate list. Thank you for your time, Mark _______________________________________________ Monodevelop-list mailing list Monodevelop-list@... http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
|
Re: problem with diacritics (accents etc)2009/10/22 Mark Kane <mkane23@...>:
> Hi all, > > I have a short question about using diacritics (for example accents: > é, á etc) in monodevelop with respect to C-sharp. > The problem is best summed up in one line of code: > > Console.writeline("é"); > > This results in the following output: > > ? > > So my question is, how do we get the following output? > > é > > Is your source file stored as UTF-8? /Oskar _______________________________________________ Monodevelop-list mailing list Monodevelop-list@... http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
|
Re: problem with diacritics (accents etc)On 22 Oct 2009, at 08:18, "Oskar Berggren" <oskar.berggren@...> wrote: > 2009/10/22 Mark Kane <mkane23@...>: >> Hi all, >> >> I have a short question about using diacritics (for example accents: >> é, á etc) in monodevelop with respect to C-sharp. >> The problem is best summed up in one line of code: >> >> Console.writeline("é"); >> >> This results in the following output: >> >> ? >> >> So my question is, how do we get the following output? >> >> é >> >> > > > Is your source file stored as UTF-8? > Are you seeing the "?" In monodevelop's application output or on a real console? Regards Ian _______________________________________________ Monodevelop-list mailing list Monodevelop-list@... http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
|
Re: problem with diacritics (accents etc)To Oskar,
I have left that as another problem. For the moment I'm just concerned with having a simple c# program that uses Console.writeline("é") and thats it. So in this scenario there is no source, I'm not reading information from a file. To Ian, I'm seeing it in monodevelop's application output. For completeness, I then tried writing this output to a file and it outputted ? as well. So now I know the problem 'might' just be within monodevelop. May I ask, if you were to have Console.WriteLine("é"); in a c# program using monodevelop, what output does it give you? I hope we can sort this out, thanks, Mark On Thu, Oct 22, 2009 at 8:17 AM, Oskar Berggren <oskar.berggren@...> wrote: > 2009/10/22 Mark Kane <mkane23@...>: >> Hi all, >> >> I have a short question about using diacritics (for example accents: >> é, á etc) in monodevelop with respect to C-sharp. >> The problem is best summed up in one line of code: >> >> Console.writeline("é"); >> >> This results in the following output: >> >> ? >> >> So my question is, how do we get the following output? >> >> é >> >> > > > Is your source file stored as UTF-8? > > > /Oskar > Monodevelop-list mailing list Monodevelop-list@... http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
|
Re: problem with diacritics (accents etc)On Thu, 2009-10-22 at 12:50 +0100, Mark Kane wrote:
<SNIP> > May I ask, if you were to have Console.WriteLine("é"); in a c# program > using monodevelop, what output does it give you? <SNIP> I get the letter é as output. My first thought is that you could be having a font issue. For example, what happens if you do a find (Search -> Find) and type in é -- do you get a ? there as well? -Ian YAI -- Yet Another Ian. _______________________________________________ Monodevelop-list mailing list Monodevelop-list@... http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
|
Re: problem with diacritics (accents etc)Hi Mark,
2009/10/22 Mark Kane <mkane23@...>: > To Oskar, > I have left that as another problem. For the moment I'm just concerned > with having a simple c# program that uses Console.writeline("é") and > thats it. So in this scenario there is no source, I'm not reading > information from a file. I'm pretty sure Oskar means is your source-code file saved as UTF-8. -- Tom Spink _______________________________________________ Monodevelop-list mailing list Monodevelop-list@... http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
|
Re: problem with diacritics (accents etc)Hi Ian,
What operating system are you using? I'm using Mac OS X 10.5.8. 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. 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. 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. Hi Tom/Oskar, As for the encoding of the source-code file itself, I just use whatever Monodevelop uses (default). I checked this using the command: file -I nameOfFile the result was UTF-8. (NOTE: out of curiosity I checked another .cs file that was created using monodevelop in my work folder and it was US-ASCII) thank you all for your time with this matter, Mark On Mon, Oct 26, 2009 at 7:50 AM, Tom Spink <tspink@...> wrote: > Hi Mark, > > 2009/10/22 Mark Kane <mkane23@...>: >> To Oskar, >> I have left that as another problem. For the moment I'm just concerned >> with having a simple c# program that uses Console.writeline("é") and >> thats it. So in this scenario there is no source, I'm not reading >> information from a file. > > I'm pretty sure Oskar means is your source-code file saved as UTF-8. > > -- > Tom Spink > Monodevelop-list mailing list Monodevelop-list@... http://lists.ximian.com/mailman/listinfo/monodevelop-list |
|
|
Re: problem with diacritics (accents etc)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 _______________________________________________ Monodevelop-list mailing list Monodevelop-list@... http://lists.ximian.com/mailman/listinfo/monodevelop-list |
| Free embeddable forum powered by Nabble | Forum Help |