ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  A Canary Trap for URI Escaping
Subject:   Sounds like a work-around
Date:   2006-05-29 13:50:49
From:   BasSchulte
Hi,


I may be wrong but this raises a big, BIG, red flag with me.


Sorta like: hey, I got this string from somewhere, let's try decoding it until I think it looks right (I've been through some utf-8 challenges lately...).


Unless you're dealing with idiots that supply you with data they say is in a given encoding that are plain wrong, just make sure you know what you're doing.


What are they sending me (tcpdump is your friend)? How is it encoded? How do I decode it to something my environment handles?


It all sounds so work-around-ish that it hurts.


But hey, if it works (good enough) for you, go ahead ;)


Cheers,


Bas.


1 to 1 of 1
  1. Sounds like a work-around
    2006-05-30 09:51:34  Robert Spier | O'Reilly Author [View]

    • Sounds like a work-around
      2006-06-04 10:40:22  BasSchulte [View]

      • Escaping vs Encoding.
        2006-06-05 21:09:34  Robert Spier | O'Reilly Author [View]

        • Escaping vs Encoding.
          2006-07-31 12:55:50  rdeforest [View]

1 to 1 of 1