I am trying to build a specific weather forecast phrase to be sopken out of Sonos from different "Environment Canada" weather plugin devices.
The problem I am having is I have a specific device string that contains the " ° " caracter that i would like to replace by "Degré Celcius" but I can't find a way for the Replace function to detect and replace this specific caracter.
Here's an exemple that I am using for many other caracters and words replacement: ResSommaire = Replace(ResSommaire ,"05h00","à cinq heure. ") and this works fine but if iI try the below line (where DevTemp is 7.7°C)
ResTemp = Replace(DevTemp,"°C"," degré celsius")
the results of ResTemp is always 7.7°C and not 7.7 degré celsius as I would expect it to be
Any idea ?
thanks
The problem I am having is I have a specific device string that contains the " ° " caracter that i would like to replace by "Degré Celcius" but I can't find a way for the Replace function to detect and replace this specific caracter.
Here's an exemple that I am using for many other caracters and words replacement: ResSommaire = Replace(ResSommaire ,"05h00","à cinq heure. ") and this works fine but if iI try the below line (where DevTemp is 7.7°C)
ResTemp = Replace(DevTemp,"°C"," degré celsius")
the results of ResTemp is always 7.7°C and not 7.7 degré celsius as I would expect it to be
Any idea ?
thanks
Comment