Jasonette / Jasonette/JASONETTE-iOS

Handle character codes in JSON Responses (ie. ''' should be apostrophe)

Open
#257 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.2k
Forks
347
PR merge metrics
No merged PRs in 30d

Description

Fields in Jasonette need to handle character codes in JSON by translating them to their appropriate characters.

When the server returns JSON containing these characters, they display in the Jasonette app as character codes rather than being replaced.

Currently, adding this to each field does the trick, but a solution is needed app-wide for Jasonette.

`{{$get.moderator_profile.name.replace(/&#([0-9]+);/g, function(match, dec) { return String.fromCharCode(dec);})}}`

screen shot 2017-08-18 at 2 26 30 pm

screen shot 2017-08-18 at 2 26 43 pm

Contributor guide

Open the contributing guide

Research direction

The issue concerns character-code handling in JSON responses and Jasonette fields, with an app-wide workaround shown in the body. Start by tracing where server JSON enters the Jasonette app and where field values are rendered; done means encoded character codes display as their corresponding characters across fields without per-field replacement.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.