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#
  4. confused arabic when reading from excel-file

confused arabic when reading from excel-file

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
4 Posts 2 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.
  • P Offline
    P Offline
    Pixinger77
    wrote on last edited by
    #1

    Hi I have an excel-table wich i use for a translation project. left side english right side the language that needs to be translated. I wrote a program that parses this table and will merge it with the C# resx files. in chinese it works very well but in arabic i fell into some problems. I can see this text in the excel table: {النتيجة الإجمالية - {0 If I convert the text, I finally get something like that (there is something twisted): النتيجة الإجمالية - {0} By the way, the same thing happends if you copy the cell from excel and paste it into the notepad. I tried to convert the string by using system.text.encoding... but didn't get far. Any suggestions or hints how to handle this problem? Thanks in advance, greets Snow.

    M 1 Reply Last reply
    0
    • P Pixinger77

      Hi I have an excel-table wich i use for a translation project. left side english right side the language that needs to be translated. I wrote a program that parses this table and will merge it with the C# resx files. in chinese it works very well but in arabic i fell into some problems. I can see this text in the excel table: {النتيجة الإجمالية - {0 If I convert the text, I finally get something like that (there is something twisted): النتيجة الإجمالية - {0} By the way, the same thing happends if you copy the cell from excel and paste it into the notepad. I tried to convert the string by using system.text.encoding... but didn't get far. Any suggestions or hints how to handle this problem? Thanks in advance, greets Snow.

      M Offline
      M Offline
      Muammar
      wrote on last edited by
      #2

      Hey Snow Flake! Encoding has nothing to do with it in that case, just try to set the Right to left and Right to left layout properties of the destination control to true, it should work fine then. Cheers.


      Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

      P 2 Replies Last reply
      0
      • M Muammar

        Hey Snow Flake! Encoding has nothing to do with it in that case, just try to set the Right to left and Right to left layout properties of the destination control to true, it should work fine then. Cheers.


        Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

        P Offline
        P Offline
        Pixinger77
        wrote on last edited by
        #3

        Worked for 100%, thanks for your help (even when this leads me into some new problems :-) ).

        1 Reply Last reply
        0
        • M Muammar

          Hey Snow Flake! Encoding has nothing to do with it in that case, just try to set the Right to left and Right to left layout properties of the destination control to true, it should work fine then. Cheers.


          Smile: A curve that can set a lot of things straight! (\ /) (O.o) (><)

          P Offline
          P Offline
          Pixinger77
          wrote on last edited by
          #4

          Does arabic really work with totally mirrored desktops? I didnt keep this in mind :-(

          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