drawtext: some characters are not working as they did in previous PRT versions
Forums › ProRealTime English forum › ProBuilder support › drawtext: some characters are not working as they did in previous PRT versions
- This topic has 14 replies, 3 voices, and was last updated 3 years ago by Daniele Maddaluno.
-
-
03/01/2021 at 11:26 AM #162840
Platform PRT v11.1 – 1.8.0_202 with IG.
I used to use, without any problems, inside my probuilder indicators some symbols like the following:
▲ ▼ © ◦
(the last one for example was used in this indicator if you need to test on you own chart)
It’s a week that they are not plotted correctly on my charts, see attachment.I think PRT has changed in one of the last updates the used charset encoding used inside of the drawtext method for charts and now those symbols are completely messed up…
- Do you all have the same problem on your platforms?
- If it’s a common problem, what is the current charset used? Knowing that I’ll find a substitute char that fits my needs.
- I have made many try and even chars from ASCII extended gives me problem in this moment. Just the 7bit ASCII seems a little bit limiting, I hope it’s not like that
03/01/2021 at 11:46 AM #162843I think it happens since one of the last updates of February. Previously I already had the v11.1 and everything was fine…
03/01/2021 at 1:40 PM #16286003/01/2021 at 2:23 PM #16286403/01/2021 at 2:35 PM #16286503/01/2021 at 2:35 PM #16286603/01/2021 at 2:46 PM #16286803/02/2021 at 9:28 AM #162925Yes, I confirm that I have the same behaviour of Noobywan on IG (even tested on PC with “drawtext(“▲ ▼ © ◦”,barindex,0,dialog,bold,15)”):
Works on IG PRT real account v11 jan.26th version
Doesn’t work on IG demo v11 feb.24th version03/02/2021 at 11:10 AM #16293503/02/2021 at 2:52 PM #162948Just tested on my Mac too.
Tested both Demo and Premium with IG.
I can tell that on the Mac all works correctly (the code above “drawtext(“▲ ▼ © ◦”,barindex,0,dialog,bold,15)” is correctly shown on charts for both the accounts demo/premium).03/02/2021 at 2:57 PM #162949Ok, so that seems only related to Windows OS! Thanks a lot for your assistance.
1 user thanked author for this post.
03/02/2021 at 4:07 PM #162956Anyway I don’t know if writing it here can help someone in the PRT development team group, but I think that they are using the “Windows-1252” (commonly mislabeled as ANSI).
You’ll see exactly my own incorrect symbols if, using this link to encode/decode online, you put the string “▲ ▼ © ◦” and then encode with “UTF-8” and decode with “Windows-1252”.1 user thanked author for this post.
03/02/2021 at 5:01 PM #16295803/02/2021 at 5:07 PM #16296003/03/2021 at 9:42 AM #163017Yes, it works thank you!
-
AuthorPosts
Find exclusive trading pro-tools on