Arrows in API strings?

Stack Overflow Asked by VicHofs on November 6, 2020

So this is probably as straightforward a question as can be. I’m using an API in my React project and it returns strings in many cases. However, I noticed that the longer texts have strange arrows in them (image below) and I have no idea what they are, so I can’t even format the text properly. Does anyone know what this is about? Thanks!

Just to be clear, I drew the blue square myself, it's not part of the arrow

One Answer

I've found the solution
It's because there is a weird and non-standard character instead of white space in your string.
The code below will fix your problem :)

const fixedString = yourString.replace(String.fromCharCode(12)," ")

Correct answer by Shawn Vn on November 6, 2020

Add your own answers!

Related Questions

TemplateRef type checking/declaring type

1  Asked on September 17, 2020 by petr-averyanov


What is the UIButton Navigation push equivalent in SwiftUI

1  Asked on September 17, 2020 by realtechygod


maven enforcer does not honor rules

2  Asked on September 14, 2020 by mr


PSET 6 DNA: How to count number of runs of consecutive STRs

1  Asked on September 14, 2020 by leoness


IBM Watson Assistant: How to add more then 5 skills?

1  Asked on September 13, 2020 by always-prog


Empty array in c++ shows absurd behavior

2  Asked on September 13, 2020 by tonystark


why am I have to convert

0  Asked on September 12, 2020 by mer


How can i get the number and their unit?

4  Asked on September 12, 2020 by jdode


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP