I need to convert web page titles to valid filenames. Can't find anything on plant sourcecode - anyone got anything to hand or shall I just filter to remove all non-alphanumeric characters?
Printable View
I need to convert web page titles to valid filenames. Can't find anything on plant sourcecode - anyone got anything to hand or shall I just filter to remove all non-alphanumeric characters?
Just use the Hex function to convert nonvalid file characters.
an example:
Code:
Dim sFile As String
sFile = "mypage/index.html"
sFile = Replace(sFile, "/", CStr(Hex(Asc("/"))))
that looks a very elegant way - thanks
Thanks =)