Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Web Game: invalid URL escape "%(4"

A topic by Shadow Kitsune created May 01, 2022 Views: 319 Replies: 2
Viewing posts 1 to 2

Ok so, I've been trying to test my html build of rpg maker game as itchio play in browser.
Yet I encounter error

parse 
(some storage link)/$giwwl1%(4).png": invalid URL escape "%(4"


I guess its a problem with %, yet I can't easily get rid of it, cause plugin I use requires % in file name.
So is there a way to get around this on itchio side, or I messed up something else there? 

(2 edits)

Long explanation here

https://en.wikipedia.org/wiki/Percent-encoding

shorter explanation: URLs have limitations on the characters allowed in them, the workaround is to URLencode, them, e.g., replace those characters with their corresponding hexadecimal (base 16, digits go from 0-9, A-F) values, prefixed with %.

I had to deal with this recently, had a whole bunch of URLs in some JSON files that included Chinese characters, and they work fine if I manually enter/paste them in a browser because the browsers automatically URLencode them, but when used in code they failed, so I have to URLencode all of them. I use a Visual Studio Code plugin to make those corrections, but there are  also websites like this

https://www.urlencoder.io/

(+1)

Thanks for the explanation, that's a good thing to know :3
I dealt with it by changing the plugin itself, took a bit but it works fine now

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.