Author Topic: ���Forum ���behavior���  (Read 8703 times)

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
The forum webpages are displaying odd Unicode characters in place of ASCII spaces or ASCII tabs.  These characters are showing up: ���

Is there some secret settings I need to make to my internet browser to fix these funny characters?

Best regards,

Gary D*ckinson
« Last Edit: January 31, 2019, 01:25:42 PM by garysdickinson »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:���Forum ���behavior���
« Reply #1 on: February 05, 2019, 11:14:22 PM »
Thank you for your feedback. Is there a specific forum thread that is showing the funny character that you mentioned? Did you try with a different browser and do all of them show the same funny characters?

We have not made any changes to the underlying PHP code for the forum. In fact we didn't upgrade the PHP because of the concern that it may break the code. But the browsers might have moved on and beginning to "not like" the code executed by the old PHP codes? We are not too sure.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
Re:���Forum ���behavior���
« Reply #2 on: February 06, 2019, 09:54:19 PM »
I see this with Microsoft Edge, 32-bit Internet Explorer and Firefox on Windows 10.  The problem also shows up with Safari on iPads and iPhones. The fact that the Unicode characters show up on very different operating systems computer hardware is very interesting.

These are a few threads that shows funny characters:

http://www.triplc.com/yabbse/index.php?board=1;action=display;threadid=2367

http://www.triplc.com/yabbse/index.php?board=1;action=display;threadid=2314

http://www.triplc.com/yabbse/index.php?board=1;action=display;threadid=2276

http://www.triplc.com/yabbse/index.php?board=1;action=display;threadid=2227

The bit of the thread that shows them has been copied from the I-TRILOGi CF editor and pasted into a reply. Some of these characters, also came from a copy/paste operation from an simple text editor.

Most of the goofy characters are where ASCII tab characters were in the original source. It is not possible to input ASCII tab characters using a keyboard as YaBBSE ignores them, but it is possible using a copy/paste operation.

The odd Unicode characters did not show up when the replys were posted. Only recently have the odd characters appeared.  They did appear in my very recent posts, but I went back and replaced them with ASCII spaces to make the posts a bit less annoying.

Gary d
« Last Edit: February 06, 2019, 10:12:30 PM by garysdickinson »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:���Forum ���behavior���
« Reply #3 on: February 08, 2019, 12:13:33 PM »
Hi Gary,

It appears that the funny characters all appear in the TBASIC codes that you are showing in your post. Did you copy those directly off a custom function editor or were these exported to an external file and then copied from the external file?

I copied one of the fragment of codes you posted  that was showing funny characters and pasted inside a TL6 custom function. I removed the funny characters and replaced them with TABs,  then copy them back and paste them into this forum post as shown  below:


' Custom function to print 0..99 on serial device #2
'
' This is the text that will be sent to the serial device:
'
'   00 01 02 03 04 05 06 07 08 09
'   10 11 12 13 14 15 16 17 18 19
'   20 21 22 23 24 25 26 27 28 29
'   30 31 32 33 34 35 36 37 38 39
'   40 41 42 43 44 45 46 47 48 49
'   50 51 52 53 54 55 56 57 58 59
'   60 61 62 63 64 65 66 67 68 69
'   70 71 72 73 74 75 76 77 78 79
'   80 81 82 83 84 85 86 87 88 89
'   90 91 92 93 94 95 96 97 98 99
'
print #2 "First Version"      ' Debug Message
for i = 0 to 9         ' outer loop for the 1s digits
   for j = 0 to 9      '   inner loop for the 10s digits
   print  #2 i;j;" ";      '  print each number with 2 digits and a space
   next
   print #2            '  newline at the end of each group of 10 numbers
next

The funny characters are no longer there.
« Last Edit: February 08, 2019, 12:17:00 PM by support »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
Re:���Forum ���behavior���
« Reply #4 on: February 08, 2019, 04:08:23 PM »
In most cases I have copied directly from the CF editor.  Sometimes
I have copied to the application, Notepad++, from the CF editor and made some changes and then copied from Notepad++ into the forum.

Today, I cannot create the issue by copying into the forum message editor from either the CF editor or from Notepad++.

What I can do is to replace the tabs with spaces using Notepad++ and this will allow me to retain a hint of the formatting that use for writing TBASIC CFs.

I won't worry this odd behavior any more.  It just was unusual that old posts started coming up with odd characters days of years after they were created.

Tanks for giving it a look.

Best regards,

Gary D*ckinson
« Last Edit: February 08, 2019, 04:31:14 PM by garysdickinson »