Problem in string with accents

Posted by: barcelo on 3 August 2017, 3:20 pm EST

  • Posted 3 August 2017, 3:20 pm EST

    Hi,



    I'm developing a application with Data Dynamics Reports, the language for this aplication is spanish, so the data and strings can contain accents.



    In design time, when I put some string in a report, I can see the accents correctly, but in run-time the letters with accents are replaced by a square, you can see this in attached file.



    How can I fix this issue?



    Thanks in advance









  • Replied 3 August 2017, 3:20 pm EST

    Hello,

    Could you please let me know if you are using a spanish operating system or english operating system.

    Thanks,
    Manpreet Kaur
  • Replied 3 August 2017, 3:20 pm EST

    Hello,



    yes, it's a spanish operating system, windows XP SP3



    Thanks,

    Nicolás Barceló
  • Replied 3 August 2017, 3:20 pm EST

    Hello,

    I was not able to replicate the issue at my end with the latest interim build. I used the english keyboard to type spanish characters with accents as described at the following link:

             http://www.spanishnewyork.com/spanish-characters.html

    I have attached a report that depicts the same, kindly have a look at it. Please let me know if I missed something. I would suggest you to test the issue with the latest interim build which you can download from the following link:

             http://downloads.datadynamics.com/ddr-1.6.2260.3.zip

    Hope it will help you. However, if you still face the same issue I would request you to provide me a sample report depicting your issue so that I can debug it further at my end.

    Thanks,
    Manpreet Kaur


    2012/06/SpanishAccentsReport.rdlx
  • Replied 3 August 2017, 3:20 pm EST

    Hi Manpreet,



    It doesn't works with last build.

    My app is very similar to the CustomDataProviderVB sample.



    I've modified this app and it's atacched in this message.

    I've written my name with accent in the sample report. If you run this sample you will replicate the same issue.



    Thanks,



    Nicolás Barceló




    2012/06/CustomDataProviderVB.zip
  • Replied 3 August 2017, 3:20 pm EST

    Hello,

    I was able to replicate the issue at my end with your sample. However, I observed that when I open your report in the designer, it displays the same square box even there, similar to the one displayed at runtime(Screenshot1 attached). I tried entering the same accent character using english keyboard and pressing ALT key with 160 from the numeric keypad as explained in the following link:

              http://www.spanishnewyork.com/spanish-characters.html

    The accent character showed up correctly in the designer(Screenshot2) and even at runtime(Screenshot3). Kindly have a look at the attached screenshots and modified sample.

    Since the character is not displayed correctly in the designer, it is showing up in the way same at runtime. Could you let me know how exactly are you typing this character so that I can try the same at my end and debug the issue further. I would also suggest you to try typing the character as I did and please share your observations further.

    Thanks,
    Manpreet Kaur
    2012/06/sample-3.zip
  • Replied 3 August 2017, 3:20 pm EST

    Hello,



    I type the accent with a spanish keyboard, my OS is windows XP SP3.



    If I try to type ALT key with 160, the accent is displayed correctly in design time but NOT in runtime.



    In any case, the accent is displayed correctly always in design time (screenshot1), but in runtime it always display a square (screenshot2).



    Thanks,



    Nicolás Barceló




    2012/06/ScreenShots.zip
  • Replied 3 August 2017, 3:20 pm EST

    Hello,

    I am discussing the issue with the developers. I will get back to you soon.

    Thanks,
    Manpreet Kaur
  • Replied 3 August 2017, 3:20 pm EST

    Hello,

    After discussing the issue with the developers it is discovered that the issue is with the encoding of the rdlx file. The
    encoding of CSVDataProviderDemoReport.rdlx is Western European
    (Windows). New reports created in our designer are UTF-8, and hence I was not able to replicate the issue at my end but changing the encoding I was able to replicate the issue at my end.

    To resolve the issue open the report as a part of the Visual 2010 project, with the Xml (Text) Editor and change the encoding to "Unicode (UTF-8)" in the properties window of the visual studio and save the xml file and close it. Open the report in the stand alone Preview and the accent character show properly.

    Hope it will help you. Please let me know if you have any queries further.

    Thanks,
    Manpreet Kaur


  • Replied 3 August 2017, 3:20 pm EST

    Hello,



    thanks very much Manpreet, now it works OK!!!



    Nicolás Barceló
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels