From: 7stud -- Date: 2007-11-06T06:46:03+09:00 Subject: Re: Unicode illegal characters problem Axel Etzold wrote: > >> 2) Who says the encoding that was set on the display device that I used >> it to send my earlier post hasn't been set to another encoding in the >> meantime? All it takes is a simple click on View>Text Encoding>some >> other encoding. > > nobody. Yet if you do these things, you put yourself into the danger > of not being perceived as particularly helpful, as the quality of any > advice on this list is, if in doubt, to be measured against whether > it leads to working code **on the original poster's machine**, > Unfortunately, you don't get it. I have no idea what the encoding is on your machine. You have no idea what the encoding is on *anyone's* machine that responds to your post--and most likely they're all different. In order to discuss unicode problems without creating confusion that can often produce conflicting advice, you can't just post a bunch of characters which may or may not get rendered for other people the same way you see them. I recommended that when you ask unicode questions that you put underscores in the characters in the code you post. That way no machine can possibly render them into the character they represent. Then everyone who reads your post can know exactly what characters *you* are dealing with. I also recommended that when you post output that you describe the output you see, rather than just posting the output--that way everyone will know what *you* see. If you don't care to do that, that is your choice. Most people won't even respond to unicode questions. If you follow my suggestions, I think it will make it easier for the few people who do. Personally, I don't keep track of the current settings for the encodings on the various machines I use: work pc, home pc, multiple laptops, cell phones. I certainly don't synchronize them. And if someone changes the encoding on one of those machines, or I change it and forget to change it back, I won't realize it. Typically, I'll read a post and if it's totally confusing, presumably because what I see is different than what the op is describing, I move on---which I'm sure at this point is something you wish I would do. So I will. -- Posted via http://www.ruby-forum.com/.