Ordering arrows content char glitch

Ordering arrows content char glitch

TensETensE Posts: 1Questions: 1Answers: 0

Same issue as described here

Using datatables.min.css 1.13.8 as per the above thread I added the @charset "UTF-8" before the code:

However I still very rarely and randomly get the issue where the sorting arrows have â–² and â–¼ as the characters

Is there anything else I can do to prevent this from happening?

Answers

  • colincolin Posts: 15,236Questions: 1Answers: 2,597
    edited January 24

    If it's rare and random, we would really need to see the issue to understand what's happening. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Colin

  • allanallan Posts: 62,990Questions: 1Answers: 10,367 Site admin

    If it is causing you issues, your best bet might be to use the ASCII escaped representation for that code point.

    content: "\25B2"; // up arrow - ascending
    content: "\25BC"; // down arrow - descending
    

    replace in the CSS as needed.

    DataTables 2 replaces the UTF8 icons with CSS borders to generate the arrows, in part to resolve this sort of thing.

    Allan

Sign In or Register to comment.