Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Why am I getting a 'non UTF-8 Encoded characters' error when uploading a .zip file?

Original title: error uploading stuff to itch

A topic by Ican3931 created Jul 20, 2024 Views: 356 Replies: 5
Viewing posts 1 to 5

ok so my problem is- i have a .zip file for some songs i made for a game jam and whenever i try to upload it, it says it successfully uploaded! but then when i check the page, it just says, in quotes-

"There was a problem loading your project:

Archive contains filename with non UTF-8 Encoded characters

Please try deleting the ZIP file and uploading another one."

i looked up the list of utf encoded characters and ALL the characters in the name of the file were on it???

im confused and the game jam game is due in a day pls help and fast

(+1)

I assume you are on windows.

Do the following, with the Shift key pressed, right click on the folder that contains the files you want to upload and check the option that says "Open PowerShell windows here"

In the PowerShell window type the following command:

Get-ChildItem -Path ".\" -Recurse | Where-Object { $_.Name -cmatch "[^\u0000-\u007F]" }

If one or more of your files has characters that are NOT UTF-8, that command will show them to you, what you should do is rename them and recreate the .ZIP


For example, I just created a file with a non-UFT8 character and what the command shows me is this:

    Directory: C:\Users\xxx\yyy
Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         19-Jul-24  11:55 PM            118 filesñ.txt

OHHH THANK YOU SOO MUCH!!! I found out that the é i used wasn't encoded (i forgot about it ;-;) so thank you so much!!! now to fix it and reupload before the deadline...

uh oh no

new problem: it says "failed to find index.html"

pls someone help and fast idk whatto do

If you are only uploading music files, you should NOT check the option that says "this file will be played in the browser."

This option is only for HTML programs and that is why it asks you for the index.html file

NEVER MIND GUYS i fixed it somehow (┬┬﹏┬┬)