Coder Social home page Coder Social logo

Incorrect encoding about 5e-database HOT 5 CLOSED

5e-bits avatar 5e-bits commented on June 23, 2024 1
Incorrect encoding

from 5e-database.

Comments (5)

bobifle avatar bobifle commented on June 23, 2024

I have the same issue, seems to have been introduced by the commit 8dacafd in 5e-SRD-Spells.json

from 5e-database.

gabenunez avatar gabenunez commented on June 23, 2024

@neko404notfound Thanks for the direction on this!

I'm currently running a discord.js bot in node.js and had to install the UTF-8 and windows1252 modules to get this to work.

item = utf8.decode(windows1252.encode(item));

from 5e-database.

justingolden21 avatar justingolden21 commented on June 23, 2024

Here's what I've been doing (replacing strings):

itemDescription = itemDescription.split('รขโ‚ฌโ„ข').join('\''); //fix apostrophie itemDescription = itemDescription.split(',-').join('
').split('.,').join('.
');

Hopefully this will be useful for someone.

from 5e-database.

bagelbits avatar bagelbits commented on June 23, 2024

I think most of these should be fixed from #50, which just contains the fix from this forked PR.

from 5e-database.

bagelbits avatar bagelbits commented on June 23, 2024

If you find anymore feel free to reopen the issue.

from 5e-database.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.