New Homepage Forums Social Media Shields Twitter shield utf-8

Tagged: 

This topic contains 7 replies, has 2 voices, and was last updated by avatar Jason 2 years, 5 months ago. This post has been viewed 583 times

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #52134
    avatarJason
    Participant

    I would like to be able to send utf-8 characters with the Twitter shield. I am placing the characters in double quotes. The tweet is posted as a series of question mark replacement characters (U+FFFD). How can I tweet with either Unicode or utf-8. Thanks

    #52463
    avatarJason
    Participant

    I am really hoping I can get some feedback on my original question which is if and how I can send twitter messages that contain utf-8 characters. Currently, If I attempt to send these utf-8 characters in my twitter string twitter replaces them with (U+FFFD). Please advise.

    #52493
    avatarAhmed ismail
    Keymaster

    Hey Jason, actually, 1Sheeld is using the ASCI characters so the UTF-8/Unicode is supporting the first 127 characters of the asci code but unfortunately it’s not supporting the extended ASCI.

    #52525
    avatarJason
    Participant

    I would be happy with being able to use ascii extended and being able to send char up to 255. Is that a possibility. Can the tweet function be modified to interpret the transmitted bytes. If you think it might be able to work could you make any suggestions on how I might accomplish this. By the way the twitter function works great and I found the twitter shield to be far more capable than the blynk twitter widget.

    #52622
    avatarAhmed ismail
    Keymaster

    May I ask, what is the smartphone type you have? And what is the OS version you last updated?

    #52644
    avatarJason
    Participant

    I have android version 6.01 and I have ios 10.3.3.

    #52658
    avatarAhmed ismail
    Keymaster

    Great, May I ask you to try it with the iOS device and let me know if it worked or not cause right now it won’t work for the Android app for some bugs which need to be fixed.

    #52707
    avatarJason
    Participant

    Thanks for your help. Here is what I’ve got so far. I sent some random characters and here is the posted tweet:
    äöüß ÄÖÜ €xm²/kg³ tweeted äöüß ÄÖÜ €xm²/kg³ (worked great)
    1µ€ ₠ ₡ ₢ ₣ ₤ ₥ ₦ ₧ ₨ ₩ ₪ ₫ € ₭ ₮ ₯ ₰ ₱ tweeted 1µ ? ? ? ? ?? ? ? ? ? ? ? ? ? ? ? ? (some characters worked)
    4µA5µF60€70€ tweeted 4µA5µF6070 (some characters worked no €)
    © © © © © © © © © © tweeted © © © © © © © © © © (worked great)
    € € € € € € € € € € tweeted (blank lines again no €)
    Ü ü Ö ö Ä ä ß µ ° ² ³ © € @ ~ { [ ] } \\ ₠ ₡ ₢ ₣ ₤ ₥ ₦ ₧ ₨ ₩ ₪ ₫ € ₭ ₮ ₯ ₰ ₱ ₲ ₳ ₴ tweeted Ü ü Ö ö Ä ä ß µ ° ² ³ © @ ~ { [ ] } \\ ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (some characters worked)
    ‎ا‎بتث‎جحخدذرز‎سشص‎ضط‎ظ‎عغفق‎ك‎ل‎م‎نه‎ويء tweeted ????????????????????????????????????????? (no characters worked)

    This is all very interesting and at least I am able to repeatedly send special characters. That is a big difference than my earlier attempts. Now if you can explain to me what my constraints are so I know which characters are safe and which are not currently supported. By the way I do want to mention that if we use the arduino serial monitor to represent these characters this is what it shows.

    äöüß ÄÖÜ €xm²/kg³ shows the following in the monitor abcABC ⸮⸮⸮⸮ ⸮⸮⸮ ⸮xm⸮/kg⸮<
    4µA5µF60€70€ shows the following in the monitor 4⸮⸮ ? ? ? ? ? ? ? ? ? ? ? ? ⸮ ? ? ? ? ?
    This leads me to believe that the characters that show ⸮ get tweeted but the ones that show ? don’t.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.