dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: substring of a chineese string is not proper.

  1. #1
    Join Date
    Jul 2010
    Posts
    3

    substring of a chineese string is not proper.

    Substring of a chineese string is returning wrong data. Substr(3) returns only 1 character. I am using string str.substr(3).But it is not working..
    Please provide some suggestions.

    Thanks and Regards,
    SS.
    Last edited by saliny; May 10th, 2019 at 06:59 AM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,348

    Re: substring of a chineese string is not proper.

    Quote Originally Posted by saliny View Post
    Substring of a chineese string is returning wrong data. Substr(3) returns only 1 character. I am using string str.substr(3).But it is not working..
    Please provide some suggestions.

    Thanks and Regards,
    SS.
    What is string ?
    What is substr?
    Are you using UNICODE or ANSI/MBCS?
    Victor Nijegorodov

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)