The Pub Discussion Board

Get your favorite beverage, sit back, and join in the discussion

You are not logged in.

#1 2025-05-09 12:47:18

CreepyUnclePete
Inebriated
Registered: 2023-01-12
Posts: 27

Uploaded windows TXT file but it does not display correctly

I uploaded the first chapter of "Glenda's Grandkids" as a TXT file in windows / ANSI format but the site displays the quote " " characters as question marks ?

Any suggestions?

Offline

 

#2 2025-05-09 13:40:29

Eric Storm
Pub Owner
From: New Port Richey, FL
Registered: 2006-09-12
Posts: 5911
Website

Re: Uploaded windows TXT file but it does not display correctly

CreepyUnclePete wrote:

I uploaded the first chapter of "Glenda's Grandkids" as a TXT file in windows / ANSI format but the site displays the quote " " characters as question marks ?

Any suggestions?

"ANSI" is not actually a format.  It's an alias.  And that's the problem.

On Windows (your machine), it's an alias to, I believe, the "Windows 1252" character encoding.
On Linux (the web server), it's an alias to "Latin 1".

Because these two do not agree (and cannot be made to agree), the file doesn't get reproduced properly.

Solutions to this problem:

1. In your word processor, set the file to save as UTF-8 format, rather than ANSI.  (I cannot tell you how to do this, as I don't know what program you're using... and probably wouldn't know how to do it anyway, since I almost certainly don't use that program myself.)

2. If you cannot figure out how to tell your word processor to save as UTF-8, you can use Notepad as a converter.  Open your text file in Notepad, then go to Save As...  At the bottom of the dialog, there's a drop-down menu to choose the encoding.  Select UTF-8, then save the file.

3. Final option, not recommended (since it leaves the file in the wrong encoding):  If you refuse to do either of the above, your only remaining recourse is to remove all extended characters from your file.  By "extended", I basically mean any character that isn't on your physical keyboard.  Curly quotes are extended characters, and so will not get properly interpreted.  Regular quotation marks are part of the standard ASCII set, and so are recognized by virtually every character encoding.

Whatever method you use, just remember that UTF-8 is always the preferred character encoding, not just here, but pretty much everywhere.  It is designed as a universal encoding, which defines characters for myriad languages, different symbologies, and even emojis.

Please let me know if you need any further assistance.

Eric Storm


Please Remember:  The right to Freedom of Speech does not carry the proviso, "As long as it doesn't upset anyone."  The US Constitution does not grant you the right to not be offended.  If you don't like what someone's saying... IGNORE THEM.
----
Facebook page

Offline

 

#3 2025-05-09 13:41:31

Eric Storm
Pub Owner
From: New Port Richey, FL
Registered: 2006-09-12
Posts: 5911
Website

Re: Uploaded windows TXT file but it does not display correctly

PS:  Why are you uploading TXT files, rather than HTML?

Eric Storm


Please Remember:  The right to Freedom of Speech does not carry the proviso, "As long as it doesn't upset anyone."  The US Constitution does not grant you the right to not be offended.  If you don't like what someone's saying... IGNORE THEM.
----
Facebook page

Offline

 

#4 2025-05-09 15:59:27

CreepyUnclePete
Inebriated
Registered: 2023-01-12
Posts: 27

Re: Uploaded windows TXT file but it does not display correctly

I'm not comfortable with HTML files yet, and have had many issues with them on other sites.

Saving and uploading as TXT /  UTF-8 fixed the issue.

Thank you!

Offline

 

#5 2025-08-20 12:45:10

TheDarkKnight
Tipsy
Registered: 2025-08-15
Posts: 2

Re: Uploaded windows TXT file but it does not display correctly

I posted my first story here a couple of days ago, and I noticed something funky about the formatting. I converted the original Google Doc (DOCX) to text, then uploaded it. The problem is that there are a LOT of extra line-feeds in the resulting document. Maybe I should try HTML next time??

Offline

 

#6 2025-08-20 19:47:40

Eric Storm
Pub Owner
From: New Port Richey, FL
Registered: 2006-09-12
Posts: 5911
Website

Re: Uploaded windows TXT file but it does not display correctly

If you have the ability, ALWAYS use HTML.  The results will be preferable virtually 100% of the time.

When dealing with TXT files, the site converts ANY line break into an HTML "<br>" tag.  This can start to look very ugly, depending on how the text file was originally generated.

There's no guarantee the HTML file will look perfect, either... but it has a better chance of looking good than TXT files do.

Eric Storm


Please Remember:  The right to Freedom of Speech does not carry the proviso, "As long as it doesn't upset anyone."  The US Constitution does not grant you the right to not be offended.  If you don't like what someone's saying... IGNORE THEM.
----
Facebook page

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson