Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to read Japanese from String Table?

How to read Japanese from String Table?

Scheduled Pinned Locked Moved C / C++ / MFC
c++helptutorialquestion
16 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S sumit durg

    I want to read Japanese string from string table. Means string is stored in Japanese language in MFC. Can any body help me out. I try with ::LoadString(hModule, IDS_STRING1002 , szTemp, sizeof(szTemp)) but it is giving ??????? ?????? .

    R Offline
    R Offline
    Rajesh R Subramanian
    wrote on last edited by
    #6

    Does your program compile without a hiccup, but it displays question marks in place of Unicode characters? In that case, you just need to install the appropriate language in your computer. Go to Control panel -> Regional and language options -> "Check" Install files for East Asian languages. Restart your machine. That should be it. :)

    Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

    S 1 Reply Last reply
    0
    • M Michael Schubert

      What type is szTemp?

      S Offline
      S Offline
      sumit durg
      wrote on last edited by
      #7

      TCHAR szTemp[256] = {0};

      1 Reply Last reply
      0
      • H Hamid Taebi

        Do you want to use of multilangues on your program?

        S Offline
        S Offline
        sumit durg
        wrote on last edited by
        #8

        yes, it can be a mutilingual program. means String Table is going to contain japanese, Chines etc. that i have to load and print in message box.

        H M 2 Replies Last reply
        0
        • R Rajesh R Subramanian

          Does your program compile without a hiccup, but it displays question marks in place of Unicode characters? In that case, you just need to install the appropriate language in your computer. Go to Control panel -> Regional and language options -> "Check" Install files for East Asian languages. Restart your machine. That should be it. :)

          Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

          S Offline
          S Offline
          sumit durg
          wrote on last edited by
          #9

          That i have done. I have done the setting in control panel. String Table is going to contain japanese, Chines etc. that i have to load and print in message box.

          R 1 Reply Last reply
          0
          • S sumit durg

            yes, it can be a mutilingual program. means String Table is going to contain japanese, Chines etc. that i have to load and print in message box.

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #10

            I think this[^] article is helpfuls for you.

            1 Reply Last reply
            0
            • S sumit durg

              That i have done. I have done the setting in control panel. String Table is going to contain japanese, Chines etc. that i have to load and print in message box.

              R Offline
              R Offline
              Rajesh R Subramanian
              wrote on last edited by
              #11

              Cool. Is your string table ready? Is your app compiling without errors after adding Japanese text entries into the string table?

              Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

              S 1 Reply Last reply
              0
              • S sumit durg

                yes, it can be a mutilingual program. means String Table is going to contain japanese, Chines etc. that i have to load and print in message box.

                M Offline
                M Offline
                Michael Schubert
                wrote on last edited by
                #12

                If you want to display the text in a MessageBox you have to use MessageBoxEx where you can (and have to) specify the language ID.

                1 Reply Last reply
                0
                • R Rajesh R Subramanian

                  Cool. Is your string table ready? Is your app compiling without errors after adding Japanese text entries into the string table?

                  Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                  S Offline
                  S Offline
                  sumit durg
                  wrote on last edited by
                  #13

                  yes, program is compiling. But string which is stored in japanese is coming like ??? ????

                  R 1 Reply Last reply
                  0
                  • S sumit durg

                    yes, program is compiling. But string which is stored in japanese is coming like ??? ????

                    R Offline
                    R Offline
                    Rajesh R Subramanian
                    wrote on last edited by
                    #14

                    You should answer all the questions that I asked. 1. Have you added the Unicode text to string table and have you verified that the program is actually reading it? 2. Are you type or paste Japanese text (Unicode) into notepad? 3. If yes, are you able to paste this text into your application?

                    Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                    S 1 Reply Last reply
                    0
                    • R Rajesh R Subramanian

                      You should answer all the questions that I asked. 1. Have you added the Unicode text to string table and have you verified that the program is actually reading it? 2. Are you type or paste Japanese text (Unicode) into notepad? 3. If yes, are you able to paste this text into your application?

                      Nobody can give you wiser advice than yourself. - Cicero .·´¯`·->Rajesh<-·´¯`·. Codeproject.com: Visual C++ MVP

                      S Offline
                      S Offline
                      sumit durg
                      wrote on last edited by
                      #15

                      1. Yes my programe is reading the unicode string. 2. I have copyed and pasted the japanese string into string table. I can see it in string table but in .rc file it is giving ? ? ????????? like this. can you tell me the encoding format of .rc file?

                      M 1 Reply Last reply
                      0
                      • S sumit durg

                        1. Yes my programe is reading the unicode string. 2. I have copyed and pasted the japanese string into string table. I can see it in string table but in .rc file it is giving ? ? ????????? like this. can you tell me the encoding format of .rc file?

                        M Offline
                        M Offline
                        Michael Schubert
                        wrote on last edited by
                        #16

                        sumit.durg wrote:

                        an you tell me the encoding format of .rc file?

                        The encoding should be Shift-JIS, CP932.

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups