Roedy Green said:
If you limited the name to A-Z a-z 0-9 . it would work on anything
without a tight length limit anything.
The library »ram.jar« contains code to convert any
Unicode-Text (including surrogate pairs) into a text
consisting only of uppercase letters and numbers
that can be used as a file name under most
file systems as long as it is short enough.
public final class Main
{ public static void main( final String[] args )
{
final java.lang.String text =
"¿Aren't Kafka's Schloß and Æsops oeuvres often naïve?";
final java.lang.String product =
de.dclj.ram.notation.filode.Text.sourceText( text );
java.lang.System.out.println( product ); }}
XBFZYARENXNTXGYKAFKAXNSXGYSCHLOXDFZXGANDXGXC6ZSOPSXGOEUVRESXGOFTENXGNAXEFZVEXK
The encoding used is called »Filode« and being described
on the Filode homepage
http://www.purl.org/stefan_ram/pub/filode
The ram.jar homepage:
http://www.purl.org/stefan_ram/pub/ram-jar