Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASCII code problems
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00672238
Message ID:
00672297
Views:
9
>I'm having a problem with some ascii codes here and I can't figure it out. It would be great if someone could help me. Anyway, in VFP:
>
>?chr( asc(chr(149))
>
>displays some weird symbol, but a symbol I need.
>
>the problem is with the chr(149). Of course, I'm not actually using
>'chr(149)', but the appropriate character. Just doing it this way for display purposes here.
>Now, if I had a string that began with chr(149), in c#:
>
>int nAscVal = (int)Char.Parse( cString.Substring( 0, 1 ) )
>
>
>nAscVal now has a value of 8226, it should be 149.

How are you populating cString and where did the data originate?
For instance, are you opening a file or a table.? What OS did it originate from.
Chris
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform