Click here to Skip to main content
15,504,703 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Rage10-Aug-14 16:17
professionalRage10-Aug-14 16:17 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier10-Aug-14 16:26
professionalNicolas Dorier10-Aug-14 16:26 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicholas Marty11-Aug-14 1:42
professionalNicholas Marty11-Aug-14 1:42 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier11-Aug-14 2:40
professionalNicolas Dorier11-Aug-14 2:40 
AnswerRe: The Magician's String, what you see is not what you get. Pin
Wonde Tadesse10-Aug-14 16:41
professionalWonde Tadesse10-Aug-14 16:41 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier11-Aug-14 0:31
professionalNicolas Dorier11-Aug-14 0:31 
GeneralRe: The Magician's String, what you see is not what you get. Pin
VICK12-Aug-14 1:07
professional VICK12-Aug-14 1:07 
GeneralRe: The Magician's String, what you see is not what you get. PinPopular
Wonde Tadesse12-Aug-14 13:37
professionalWonde Tadesse12-Aug-14 13:37 
It catches it and will tell you false. They are not the same Unicode. See the code below.
C#
private static void MystriesUniCode()
{
   Console.WriteLine("{0} U+{1:x4} {2}", 'а', (int)'а', (int)'а');
   Console.WriteLine("{0} U+{1:x4} {2}", 'a', (int)'a', (int)'a');
}

And output is

? U+0430 1072
a U+0061 97




Seeing is believing. Not this time. Compiling is believing. Big Grin | :-D
Wonde Tadesse

GeneralRe: The Magician's String, what you see is not what you get. Pin
VICK17-Aug-14 18:58
professional VICK17-Aug-14 18:58 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Freak3011-Aug-14 4:31
Freak3011-Aug-14 4:31 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier11-Aug-14 5:21
professionalNicolas Dorier11-Aug-14 5:21 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Bernhard Hiller11-Aug-14 23:03
Bernhard Hiller11-Aug-14 23:03 
GeneralRe: The Magician's String, what you see is not what you get. Pin
PIEBALDconsult11-Aug-14 5:28
professionalPIEBALDconsult11-Aug-14 5:28 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier11-Aug-14 5:29
professionalNicolas Dorier11-Aug-14 5:29 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Rob Grainger14-Aug-14 0:33
Rob Grainger14-Aug-14 0:33 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Ian Shlasko14-Aug-14 4:46
Ian Shlasko14-Aug-14 4:46 
GeneralRe: The Magician's String, what you see is not what you get. Pin
KP Lee21-Aug-14 20:28
KP Lee21-Aug-14 20:28 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier22-Aug-14 0:42
professionalNicolas Dorier22-Aug-14 0:42 
GeneralRe: The Magician's String, what you see is not what you get. Pin
KP Lee22-Aug-14 16:47
KP Lee22-Aug-14 16:47 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier23-Aug-14 13:02
professionalNicolas Dorier23-Aug-14 13:02 
GeneralRe: The Magician's String, what you see is not what you get. Pin
KP Lee23-Aug-14 22:22
KP Lee23-Aug-14 22:22 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier24-Aug-14 1:02
professionalNicolas Dorier24-Aug-14 1:02 
GeneralRe: The Magician's String, what you see is not what you get. Pin
KP Lee24-Aug-14 16:28
KP Lee24-Aug-14 16:28 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Nicolas Dorier25-Aug-14 2:09
professionalNicolas Dorier25-Aug-14 2:09 
GeneralRe: The Magician's String, what you see is not what you get. Pin
KP Lee23-Aug-14 23:02
KP Lee23-Aug-14 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.