degree symbol on eDLT

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by MHeaton, Nov 9, 2021.

  1. MHeaton

    MHeaton

    Joined:
    Apr 22, 2008
    Messages:
    93
    Likes Received:
    1
    Location:
    London
    Hi there,
    I am trying to get a degree symbol into a dynamic label (for an AC set point):

    Format(targetDLTText, temperature:0:1, #$c2#$b0'C'); {°C in UTF8}
    SetStringIBSystemIO("Label Group Text", "Local Network", "Lighting", "Study AC Setpoint", Variant1, targetDLTText);


    if i run this the eDLT it displays A degree C
    if i change the #$c2#$b0'C' to °C I get ?C
    what is the correct way? obviously this is all about ascii. Unicode and UTF8...

    Thank you
    Mark
     
    MHeaton, Nov 9, 2021
    #1
    1. Advertisements

  2. MHeaton

    Wonkey

    Joined:
    Aug 3, 2004
    Messages:
    248
    Likes Received:
    20
    Location:
    Adelaide
    I did something similar to read the temperature from my spa via temp sensor
    I realise its not the same but I do get °C shown on the eDLT
    This is an extract of my code and comments inside my Wiser 2 logic

    Within toolkit
    1)set the tempsensor mode to measurement
    2) give it an ID number
    my one has 121) }

    If GetBoolIBSystemIO("Measurement App Valid Value", "Local", 121, 1) then
    begin
    { This line starts with the global variable for what we are going to display and equates it to the inbuilt system IO,
    so now this global variable is the real value from the temp sensor}
    Temp_Real := GetRealIBSystemIO("Measurement App Real Value", "Local", 121, 1);


    {convert real value to a string}
    Format (Temp_String, Temp_Real:4:1);

    {label the string}
    Append (Temp_String, '˚C');

    {display the String}
    SetStringSystemIO("Inside temp", Temp_String);

    end;
     
    Wonkey, Nov 12, 2021
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.