none
code for How to check for non ascii characters in a filepath string RRS feed

  • Question

  • Hi Everyone,

    I have a filePath string like D:\\ДесятьСтраниц\\Myfile.txt , in this file path I want to check for non ascii characters "ДесятьСтраниц" .what should be the code for it .I have tried like this

    for each (char c in filePath)

    {

    if(c > 127)

    {

    nonAsciiCharFound = true;

    break;

    }

    }

    but this is not working. Looking for the suggestions.

    Regards,

    Natiq

    Tuesday, April 30, 2013 10:22 AM

Answers

All replies