Results 1 to 1 of 1
  1. #1
    New Lounger
    Join Date
    Dec 2014
    Posts
    20
    Thanks
    5
    Thanked 1 Time in 1 Post

    UNICODE DATA GETTING DISPLAYED AS ????? (Question Marks)

    hi..
    This is bhushan.. There is a glitch in my ppt program.

    Its not reading Unicode characters, could you help to fix it?

    Its a PPT template where there are 15 question and answers, the data is saved in a text file.
    The code works well with ANSI characters. but if we use UNICODE characters of other language like hindi it gives the output as ????? (question marks)

    I tried to search for solution but was not able to implement it to my code.
    thanks




    --------------------------------------------------------------------------------------------------------------------------




    Public Function ReadINI(Section As String, KeyName As String, Filename As String) As String


    Dim sRet As String

    sRet = VBA.String(255, VBA.Chr(0))
    ReadINI = VBA.Left(sRet, GetPrivateProfileString(Section, ByVal KeyName, "", sRet, VBA.Len(sRet), Filename))

    End Function
    --------------------------------------------------------------------------------------------------------------------------
    Last edited by bhushanvshah; 2016-07-30 at 13:00. Reason: better understanding

Posting Permissions

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