• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Possible encoding problem with Wiki Page over a thread/forum?

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Possible encoding problem with Wiki Page over a thread/forum?

    • Issue Tools
      • View Changes
    1. issueid=4126 January 7, 2015 3:02 PM
      Ptah Ptah is offline
      Junior Member
      Possible encoding problem with Wiki Page over a thread/forum?
      When wiki page is over a thread/forum, some unicode characters are rendered incorrectly?

      When using Content Integration to put a wiki page over a thread/forum, it seems that unicode characters that are normally rendered fine on the wiki page itself show up as "?" when that page is shown over a thread/forum.

      Example from my site: (note: the chess unicode characters near the bottom of the article)
      Wiki page directly: http://forums.intpcomplex.com/wiki_i...Px-Forum-Chess
      Wiki page over thread: http://forums.intpcomplex.com/showth...28-Forum-Chess

      Help?
      Thanks
      Ptah
    Issue Details
    Issue Number 4126
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category General
    Status Not a Bug
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version Unknown
    Fixed Version (none)
    Milestone (none)
    Software DependencyvBulletin 4.x w/ ckEditor
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. January 7, 2015 4:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      From what I understand, chess-piece characters only exist in unicode-based character sets (such as UTF-8). Your non-wiki forum pages are using the ISO-8859-1 character set. I am having trouble finding a list of ISO-8859-1 characters on Google that includes the chess pieces, so I'm pretty sure my understanding is correct. While VaultWiki will try to translate characters between character sets for integrations, there is no corresponding chess character in ISO-8859-1, so there is nothing to translate it to.

      If you really really want to show these characters in regular threads rather than using images, you will have to perform the painful process of converting the entire database to UTF-8, a process that is really easy to screw up.
      Reply Reply  
    2. January 7, 2015 5:18 PM
      Ptah Ptah is offline
      Junior Member
      Why not do them like so?

      HTML-source of the ISO-8859-1 general forum page that renders the given characters correctly:
      Code:
      (unicode symbols: ♗♗♘♙♙♞♞♟♟)
      Reply Reply  
    3. January 7, 2015 5:18 PM
      Ptah Ptah is offline
      Junior Member
      Why not do them like so?

      HTML-source of the ISO-8859-1 general forum page that renders the given characters correctly: (using "&#xxxx" syntax)
      Reply Reply  
    4. January 7, 2015 6:02 PM
      pegasus pegasus is offline
      VaultWiki Team
      They would have to be entered in the article using the "&#xxxx" syntax, which may or may not require that the article accepts HTML. If it requires HTML, you should create chess-piece templates in an admin-only template area. You can then include them using [template]Pawn[/template] etc.

      As they are now, they are the raw characters. I could write some code to have the server translate all characters to entities (in fact I just tried it on your site), but it does not work as we would have hoped for chess characters. The server can translate some characters to entities, if the server has the map installed. Usually the server character maps match the corresponding RFC for the character set. The RFCs for ISO-8859-1 unfortunately do not contain chess characters.

      I suspect that chess characters work on your regular forum pages only in some browsers whose makers thought it would be fun to include them, or those specific posts use the "&#xxxx" syntax directly. But the server doesn't have access to the same copy of the map that the user's browser might be using, and as I mentioned the server maps don't include the "&#xxxx" values for anything that wasn't defined in RFC.

      The other option would be to ignore that the server doesn't know and to teach it. Training the server to translate individual characters is not something VaultWiki can do, as there are 65,535 possible combinations in ISO-8859-1, many of them are allowed to be customized, and that is just one of the sets that sites might be using (with some other sets having millions of combinations). Thus it is not a good focus of development time when the server already follows the standard definition of ISO.

      If on the other hand, you find other characters that are defined in the RFC for ISO-8859-1 that are not working correctly in integrations, such as Greek alphabet characters, I would be happy to revisit this issue.
      Reply Reply  
    5. January 8, 2015 4:24 PM
      Ptah Ptah is offline
      Junior Member
      Ah, yeah, that makes sense. I appreciate you looking looking into it
      Reply Reply  
    6. January 14, 2015 11:35 AM
      Ptah Ptah is offline
      Junior Member
      Fwiw, I'm experimenting with a bbcode that just takes as its content the "####" part and then writes out the html character reference syntax around it. Preliminarily, that results in characters showing correctly in forum pages, wiki pages, and wiki pages over forum pages. As it seems to render out in raw HTML with character entities in all cases.

      Hack? Yes. But a harmlessly useful one, it seems.

      Anyhow, I figure if users are savvy enough to enter unicode characters, they are savvy enough to dig up the html character entity codes.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 6:58 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.