I got a weird error.
I have a server that is sending me IP address in ascii form. I can translate the address by hand using an ascii to decimal convert (google).
My code which is simply casting the letters to ip segments doesn't convert properly. For example:
//This produces: 352 int i = (int)'Š';
but in reality when I use a by hand converter it should be 138! Why is this happen? How can I convert properly? (It's kind of hard to use 352 in an ip address...
Thanks
Metric

New Topic/Question
Reply



MultiQuote




|