Can an SSID Have Unicode Characters?
Posted: Mon Jun 19, 2006 6:35 pm
Does anyone know if you are SUPPOSED to be able to put Unicode characters in a wireless router's SSID? This one line from my summary.txt field caused me untold hours of frustration this past weekend:
N 31.3258050 W 92.4660250 ( ÜMCD Bridge ) BSS ( 00:06:11:01:1a:d5 ) 16:21:38 (GMT) [ 34 83 49 ] # ( ) 0001 00000408 100 110 0
Notice the "Ü" character at the beginning of the SSID.
I was using the MSXML2.ServerXMLHTTP component to grab a summary.txt file from a remote location so I could write it to a file and parse it. Apparently, the component will crap out if the text has unicode characters in it. My summary.txt file was 4,458 lines, and I suspected that a Unicode character was the cause, but I wasn't about to read through the whole thing to find it. So I started custting my file in half and trying to grab it again remotely. After a few recursions, I found it, in the line above. I removed the character and it grabs and writes the file just fine now.
So is Unicode part of the allowed spec? Because if not, that means my file may have gotten corrupted somewhere along the line, somehow.
But for now, I'll just use Replace(grabbedtxt, "Ü", "") to handle this.
N 31.3258050 W 92.4660250 ( ÜMCD Bridge ) BSS ( 00:06:11:01:1a:d5 ) 16:21:38 (GMT) [ 34 83 49 ] # ( ) 0001 00000408 100 110 0
Notice the "Ü" character at the beginning of the SSID.
I was using the MSXML2.ServerXMLHTTP component to grab a summary.txt file from a remote location so I could write it to a file and parse it. Apparently, the component will crap out if the text has unicode characters in it. My summary.txt file was 4,458 lines, and I suspected that a Unicode character was the cause, but I wasn't about to read through the whole thing to find it. So I started custting my file in half and trying to grab it again remotely. After a few recursions, I found it, in the line above. I removed the character and it grabs and writes the file just fine now.
So is Unicode part of the allowed spec? Because if not, that means my file may have gotten corrupted somewhere along the line, somehow.
But for now, I'll just use Replace(grabbedtxt, "Ü", "") to handle this.