Changing filename characters?

aimeeandbeatles

watermelon
Joined
Apr 5, 2007
Messages
20,112
Is there some program or online tool where you can input a word with non-ASCII characters and have it output the closest ASCII characters. This is for renaming files to upload to the site.


Moderator Action: Moved to its own thread, as it is a question and thus doesn't belong in the "list of useful programs".
 
I think you actually mean "extended ASCII codes" not 'non-ASCII' characters.

asciifull.gif


extend.gif



Type ALT+ a number from 1..255 to get that char. Not sure if there's a way to auto rename it, but I think this would be easy to do in BASIC or with a BATCH file using DOS commands. E.g. convert one of the "a" characters to an actual "A" if encountered.
 
Do you have a ready example? I'm having a hard time guessing what type of word you might mean that wouldn't be in a language that you could plug in to Google Translate, or look up the meaning of via the native language's Wikipedia (and then clicking the English link, if there's an equivalent English page). Surprisingly I don't seem to have any music files with Russian filenames, just a Powerpoint, but if I did that's what I'd probably do.

If the filenames are in leet speak or something like that, a program like GoodGame is suggesting might be the best option.
 
Extended ASCII may have been what I meant.

Attached is a text file with some examples (it's just a directory listing I used this tool to make it).

If I were to upload any of these files to my site I would need to rename the extended characters to the nearest one or I will end up with a lot of funny looking filenames.
 
Hmm, there are some rather thorny filenames in there. But they seem to all be extended ASCII (using the Windows 1252 scheme), as GoodGame guessed. I don't know of any such software off the top of my head, but in my optimistic mood it doesn't sound like it would take too long to put together some software to do that.

One note is that at least one of those letters (thorn, Þ) would usually be represented by "th", rather than a single letter. Random Wikipedia knowledge I learned some time ago.
 
Well, if I'm not mistaken, "Þjóðviljinn" roughly translates to "national newspaper."

Also "blaðið" is roughly "paper" so you have "daily paper" (Dagblaðið) "review paper" (Fréttablaðið) and "morning paper" (Morgunblaðið). I think "bladid" also translates to paper so I use d's for those funny characters.
 
You speak more Icelandic than me!

It sounded like more fun to create a program that did this than to Google whether one existed, so I did. It's attached, in a .zip file, and will run on Windows with Java. However, I didn't have time to polish it much and must head to sleep now, so a few notes:

*The utility is case-sensitive.
*Make sure you tab off of the "New" column before hitting "Replace characters in folder...". Otherwise the "New" value will be recorded as a null. This is the one thing you will get a warning about. Similarly, you should tab off a cell before adding a new row, or you'll have to re-enter the value.
*Be careful about using a character in both "Current" and "New". For example, if you replaced "h" with "t" and then "t" with "x", then all of your original t's as well as all of your original h's will become x's. The night is too short for more sophistication.
*Do not use this utility except on Windows. It will cause file name havoc if you do.
*Do not use this utility with files with more than or fewer than three characters in their file extension.

And most importantly,

*Back up all the files first. The utility has "Quick and dirty" in its name in part because it's only been tested in simple situations enough to say, "It seems to work". The most likely, but possibly not the only, side effect of it not working would be clobbered filenames.

If it turns out there isn't a drastically better utility out there I might smooth out the edges a bit in the future.

Likely my last post on CFC before Christmas, so to all a merry Christmas and to all a good night.
 
Thank you!
 
Back
Top Bottom