Results 1 to 2 of 2

Thread: ilist ... Part of the Chinese display is still garbled~

  1. #1
    Newbie
    Join Date
    Jan 2009
    Posts
    8

    ilist ... Part of the Chinese display is still garbled~

    I downloaded the best version of the RR, but the test still exist about this issue. Most of the Chinese name can be displayed properly, but still part of it will appear as garbage characters. The code I used in 2007 to compile a moment can be displayed properly in English and Chinese. This is done like this:
    The ilist control, the use LenC this function instead of VB's Len function. If you can hope that RR can be a little change it into Chinese. Thank you very much.

    Public Function LenC(s As String) As Integer
    Dim N As Integer
    LenC = 0
    For N = 1 To Len(s)
    If (AscW(Mid(s, N, 1)) > 256) Or (AscW(Mid(s, N, 1)) < 0) Then
    LenC = LenC + 2
    Else
    LenC = LenC + 1
    End If
    Next N
    End Function

  2. #2
    RoadRunner Mastermind
    Auto Apps:loading...
    guino's Avatar
    Join Date
    Nov 2004
    Location
    Toronto, Canada
    Posts
    9,817
    Can you Send me a private message with an example file/song that doesn't display Chinese right ? I don't see anything wrong in the code, and I'm using Unicode functions to display the text -- in unicode a Character in Chinese is 2 Bytes, and a character in English is ALSO 2 bytes, so there's no need to adjust the size using LenC.

    Quote Originally Posted by aniceking View Post
    I downloaded the best version of the RR, but the test still exist about this issue. Most of the Chinese name can be displayed properly, but still part of it will appear as garbage characters. The code I used in 2007 to compile a moment can be displayed properly in English and Chinese. This is done like this:
    The ilist control, the use LenC this function instead of VB's Len function. If you can hope that RR can be a little change it into Chinese. Thank you very much.

    Public Function LenC(s As String) As Integer
    Dim N As Integer
    LenC = 0
    For N = 1 To Len(s)
    If (AscW(Mid(s, N, 1)) > 256) Or (AscW(Mid(s, N, 1)) < 0) Then
    LenC = LenC + 2
    Else
    LenC = LenC + 1
    End If
    Next N
    End Function
    Ride Runner RR's Myspace

    "Being happy is not about having what you want, it's about wanting what you have."
    "The best things in life are always free - but that doesn't mean money can't buy you good things."

Similar Threads

  1. Indexing music in 1.0.9.8 Failed
    By hovalistic in forum StreetDeck
    Replies: 0
    Last Post: 07-07-2007, 11:19 AM
  2. frodo display help
    By turbocad6 in forum FrodoPlayer
    Replies: 0
    Last Post: 10-14-2005, 10:37 AM
  3. Motorizing a LCD display (part 1)
    By videodok in forum LCD/Display
    Replies: 11
    Last Post: 11-10-2003, 08:37 PM

Bookmarks

Posting Permissions

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