Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The Magician's String, what you see is not what you get.

The Magician's String, what you see is not what you get.

Scheduled Pinned Locked Moved The Lounge
comsaleshelpworkspace
14 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Agent__007

    Not really, it's a trap![^] :)

    Whether I think I can, or think I can't, I am always bloody right!

    A Offline
    A Offline
    Argonia
    wrote on last edited by
    #5

    Ah, Yes thank you I missed that thread in the WW.

    Microsoft ... the only place where VARIANT_TRUE != true

    1 Reply Last reply
    0
    • N Nicolas Dorier

      static void Main(string[] args)
      {
      String str1 = "http://toto.com/";
      String str2 = "http://toto.com‏/";
      bool eq = str1 == str2;
      Console.WriteLine(eq); //print false

      str1 = "http://toto.com/";
      str2 = "http://toto.com/";
      eq = str1 == str2;
      Console.WriteLine(eq); //print true
      

      }

      See for yourself, but copy the code, do not retype it. :) I lost hair on this one, bug on an actual project for one customer. But it is a nice trick to do to one of your collegue if his computer is unlocked... Also works in configuration files. ;) This is pure evil though.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #6

      Ah, a \u200F (right to left mark). Sneaky sneaky. I've also met the "record separator" (invisible ascii character) before, didn't do that much damage but caused some headaches..

      N 1 Reply Last reply
      0
      • J Johnny J

        No cross posting... ;P

        Anything that is unrelated to elephants is irrelephant
        Anonymous
        -----
        The problem with quotes on the internet is that you can never tell if they're genuine
        Winston Churchill, 1944
        -----
        I'd just like a chance to prove that money can't make me happy.
        Me, all the time

        N Offline
        N Offline
        Nicolas Dorier
        wrote on last edited by
        #7

        Sorry, I got too excited by my discovery, I think it is the biggest WTF invented since iphone.

        1 Reply Last reply
        0
        • L Lost User

          Ah, a \u200F (right to left mark). Sneaky sneaky. I've also met the "record separator" (invisible ascii character) before, didn't do that much damage but caused some headaches..

          N Offline
          N Offline
          Nicolas Dorier
          wrote on last edited by
          #8

          would you know how to write it with keyboard ? I have no idea how my customer wrote the character, and he neither. I can only duplicate the problem by copy pasting.

          L K 2 Replies Last reply
          0
          • N Nicolas Dorier

            would you know how to write it with keyboard ? I have no idea how my customer wrote the character, and he neither. I can only duplicate the problem by copy pasting.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #9

            There's an Alt code, but it's one of the weird ones that start with a + and that usually don't work (IIRC there's some obscure setting to enable it). They probably copied it from somewhere.

            1 Reply Last reply
            0
            • N Nicolas Dorier

              static void Main(string[] args)
              {
              String str1 = "http://toto.com/";
              String str2 = "http://toto.com‏/";
              bool eq = str1 == str2;
              Console.WriteLine(eq); //print false

              str1 = "http://toto.com/";
              str2 = "http://toto.com/";
              eq = str1 == str2;
              Console.WriteLine(eq); //print true
              

              }

              See for yourself, but copy the code, do not retype it. :) I lost hair on this one, bug on an actual project for one customer. But it is a nice trick to do to one of your collegue if his computer is unlocked... Also works in configuration files. ;) This is pure evil though.

              F Offline
              F Offline
              Fueled By Decaff
              wrote on last edited by
              #10

              What, you mean you are not using the font Terminal for your C# code editing? ;-)

              N 1 Reply Last reply
              0
              • A Argonia

                Ah the beauties of c# That's why I use String.Equals or Compare.

                Microsoft ... the only place where VARIANT_TRUE != true

                N Offline
                N Offline
                Nicolas Dorier
                wrote on last edited by
                #11

                ahah it's not that :) Hint : The magic is language agnostic, it follows you wherever you copy it.

                1 Reply Last reply
                0
                • F Fueled By Decaff

                  What, you mean you are not using the font Terminal for your C# code editing? ;-)

                  N Offline
                  N Offline
                  Nicolas Dorier
                  wrote on last edited by
                  #12

                  I learned the hard way why the font was useful ahah

                  1 Reply Last reply
                  0
                  • N Nicolas Dorier

                    would you know how to write it with keyboard ? I have no idea how my customer wrote the character, and he neither. I can only duplicate the problem by copy pasting.

                    K Offline
                    K Offline
                    Karen Mitchelle
                    wrote on last edited by
                    #13

                    IIRC, it's Alt + 288 ..

                    Don't mind those people who say you're not HOT. At least you know you're COOL. I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64

                    N 1 Reply Last reply
                    0
                    • K Karen Mitchelle

                      IIRC, it's Alt + 288 ..

                      Don't mind those people who say you're not HOT. At least you know you're COOL. I'm not afraid of falling, I'm afraid of the sudden stop at the end of the fall! - Richard Andrew x64

                      N Offline
                      N Offline
                      Nicolas Dorier
                      wrote on last edited by
                      #14

                      if I do in in notepad or whatever, it prints as a space :(

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups