HMI Pad Forums Main Forums ScadaMobile Support Use of special character "°C"

This topic contains 3 replies, has 2 voices, and was last updated by  Grzegorz 6 years, 2 months ago. This post has been viewed 710 times

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19551

    Grzegorz
    Participant

      Hi,

      How to use special character suffix for Temperature "°C".

      For example:
      If I use below example to present suffix for Temperature:

      [quote]cwu15,REAL,DB29.DBD224,"page=""Pompa cyrk. C.W.U.""; section=""Ustawienia"" ; label=""Temperatura w °C"" ; comment=""Min. temp. załączenia pompy""; write_access=9; style:=""bezel""; format=""2.1""; [b]suffix:="" °C""[/b]; bounds={40,50}; hidden=((cwu2==1) || (cwu4==0 && cwu4a==0));"[/quote]

      then I have some unspecified character before "°C" as on screenshot below:

      [url=http://www.flickr.com/photos/102744175@N05/9878306686/][img]http://farm3.staticflickr.com/2855/9878306686_c22592533c_z.jpg[/img][/url]
      [url=http://www.flickr.com/photos/102744175@N05/9878306686/]Untitled[/url] by [url=http://www.flickr.com/people/102744175@N05/]grzegorz914[/url], on Flickr

      I use UTF-8 encoding

      Thanks

      #19552

      John
      Keymaster

        Hi, This is most possibly because the string encoding used to edit/save the file does not match with the one specified on the first line of the csv. I am not sure what is the standard encoding used in your area but such kind of things would happen for example if you save the file as UTF8 but then you specify # %encoding WindowsLatin1 (or nothing) on top of the csv.
        Still I am partially intrigued on your particular case because I see other diacritic characters displaying just fine, and also the ºC is correctly displayed after all (except for the leading  of course). Maybe there is some extraneous character before the ºC that does not display on the editor?.
        In any case please first make sure that the string encoding used by your text editor matches the one specified on top of the csv, and then let me know. Thanks

        #19553

        Grzegorz
        Participant

          Hi,

          I use in my *.csv file
          # %encoding UTF-8,
          my editor also uses encoding UTF-8 and I don't know what is wrong.

          Below link to my test.csv file, please check what is wrong.

          https://www.dropbox.com/s/urv120chn1m1qg3/test.csv

          thanks

          #19554

          John
          Keymaster

            Hello Grzegorz,

            We found this to work fine with -at least some- old encodings directly derived from ASCII but to fail with UTF-8 as you reported. This is indeed a bug on the latest version of ScadaMobile.

            We just had this issue internally solved, please see this screen shot showing your file with the UTF-8 encoding:

            [img]http://www.sweetwilliamsl.com/wp-content/uploads/2013/09/iOS-Simulator-Screen-shot-23.09.2013-10.39.49-e1379926109474.png[/img]

            This fix will be available on the next update of the app. Thanks for reporting this and sorry for the inconveniences.

          Viewing 4 posts - 1 through 4 (of 4 total)

          You must be logged in to reply to this topic.

          Copyright © SweetWilliam, S.L 2009-2013. All rights reserved.
          Science and Technology Park of the University of Girona, Emili Grahit, 91 (Narcís Monturiol building, Office P3-B03) 17003-Girona. Phone +34972183244