Author |
Topic |
|
Webbo
Average Member
United Kingdom
982 Posts |
Posted - 17 April 2016 : 17:16:59
|
Here's one that might test a few of you
Why is it when some people post using mobile phones hashtags show up in their posts, ie #128077; ?
I think it's to do with the them entering smilies from their phone rather than using the forum's smilie code, ie [;p] but I'm not sure. If it is is there a way around it, such as intercepting the hashtag and substituting it with form code, perhaps using the profanity filter?
And to do that would need a list of relevant hashtags and smilies |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 18 April 2016 : 08:32:53
|
it would be possible,, for example #128077 could in fact be part of a url as # also denotes an anchor in a url. Although can't say I have ever come across this phenomena. |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 19 April 2016 : 11:23:20
|
If it's only when they post from a mobile, then I suspect it's the phone's keyboard inserting a code (some unicode?) for a smilie. I may have to try here on my lunch break to see... |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 19 April 2016 : 16:38:48
|
I was getting ready to test this out, and realized that it's going through the MVC version here... #129300;
Not sure if that changes anything. |
Edited by - AnonJr on 19 April 2016 16:39:22 |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 19 April 2016 : 17:03:02
|
Interesting. Testing that theory from my mobile as well. ? 👍 |
Edited by - Davio on 19 April 2016 17:03:56 |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 20 April 2016 : 09:50:49
|
Posted the last one from my Nexus 6P, and inserted one of the emojis using the Google Keyboard. It showed as just a regular unknown unicode character until I edited the post on my desktop browser, that's when it changed to the "#129300;". (probably from 🤔 and the & got stripped out?) |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 20 April 2016 : 10:02:46
|
Did another test on a regular forum (no .NET) and it posted a straight "#129300;" - so the .NET is at least trying to store it as some sort of unicode character? |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 20 April 2016 : 10:18:55
|
quote: Originally posted by AnonJr
Posted the last one from my Nexus 6P, and inserted one of the emojis using the Google Keyboard. It showed as just a regular unknown unicode character until I edited the post on my desktop browser, that's when it changed to the "#129300;". (probably from 🤔 and the & got stripped out?)
Yes, that's what I'm guessing is happening. unfortunately only mobile devices appear to have the fonts for them installed, and even then that varies from phone to phone.
It should be possible to replace them with known forum smilies though, but would need care as like I said previously #XXXXX could be a url anchor so would need to check carefully what is being replaced. |
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 20 April 2016 : 10:35:26
|
quote: Originally posted by HuwRunfortunately only mobile devices appear to have the fonts for them installed, and even then that varies from phone to phone.
Except even then it's not showing up right on the phone - the phone displays the frustrating invalid unicode block after posting too.
To be sure someone's found and solved this in a way that could be borrowed... |
|
|
|
Topic |
|