illnill Posted February 27, 2012 Posted February 27, 2012 I have som difficulties to substitute Swedish characters from my files names. I want to clean up file names using the filename parameter in the SCSetContainer function. I found that when I fetch the swedish character "ä" from a variable populated using SCChooseFile it's not the correct character. Using Code is get 77600097 instead of 228 which it should be. Is this a limitation in the SuperContainer Plugin? Any suggestions? /Niklas
David Wikström Posted February 27, 2012 Posted February 27, 2012 Did you try Char ( 77600097 )? It also returns ä. You can actually write ä in different ways in unicode, either as a single character (228) or as an a (00097) + an umlaut/dieresis (00776) = 77600097. I have no idea why SC uses one and not the other, but you could probably get around this by simply handling both?
illnill Posted February 27, 2012 Author Posted February 27, 2012 Hi David! Yes, I figured this much out. And for a moments I thought I use the Char function to get the alternative "ä" (represented using 77600097) on screen, so to speak, then copy this character to the Substitute function. But FileMaker didn't get it. It wasn't substituted. What did I miss? How do I handle the more complex version of the "ä"?
David Wikström Posted February 28, 2012 Posted February 28, 2012 Why don't you just do a Substitute ( $filename ; [ Char ( 77600097 ) ; "ae" ] ; [ Char ( 228 ) ; "ae" ] ) ? Or did you already try that?
Recommended Posts
This topic is 4653 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now