[Solved] Can't open files if special characters in file path

Issues installing under the Mac OSX - X11 - Aqua
Post Reply
seezee
Posts: 5
Joined: Thu Feb 24, 2011 6:29 pm

[Solved] Can't open files if special characters in file path

Post by seezee »

I'm trying to access OpenOffice files on a NAS (ReadyNAS NV+). The client computer is MacOS 10.6; the files are in a sub-directory of a directory that has a UTF-8 extended character in the name (an 'a' with an umlaut, U+00E4).

When I try to open one of the files, an error message appears saying that the file does not exist. If I move the file up the directory structure to a location above the folder w/ the special character, the file is accessible. What are the possible workarounds for this? I can't change the folder name, because too many symbolic links & shortcuts on other workstations rely on that path.
Last edited by seezee on Fri Feb 25, 2011 11:08 pm, edited 1 time in total.
OpenOffice 3.2.1 on Windows XP SP3 / OpenOffice 3.3 on MacOS 10.6
User avatar
Villeroy
Volunteer
Posts: 31350
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Can't open files if special characters in file path.

Post by Villeroy »

Use a link without umlaut.
Under Linux this would look like:
ln -s /server/blöder äppel tümpel/ /home/user/corny_apple_pool/
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
seezee
Posts: 5
Joined: Thu Feb 24, 2011 6:29 pm

Re: Can't open files if special characters in file path.

Post by seezee »

It's not a question of links. I can browse to the original file via the OS X finder, but when I try to open it (if it is under the folder w/ the umlaut in the name), I can't open it. I can create a link (an 'alias') & drop it in a local folder on my Mac, give it a name w/o any umlauts etc, but can't open the file via the link. The problem is that the PATH/TO/THE/FILE contains the umlaut, and apparently OpenOffice for MacOS can't handle that. Never had this problem w/ OpenOffice for XP.
Last edited by seezee on Thu Feb 24, 2011 7:41 pm, edited 1 time in total.
OpenOffice 3.2.1 on Windows XP SP3 / OpenOffice 3.3 on MacOS 10.6
User avatar
Villeroy
Volunteer
Posts: 31350
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Can't open files if special characters in file path.

Post by Villeroy »

Well, the work-around I suggested might circumvent the problem, given that MacOS supports symlinks like Linux does. You access the same files under another path without umlaut.
I'll move this topic to the Mac forum.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
seezee
Posts: 5
Joined: Thu Feb 24, 2011 6:29 pm

Re: Can't open files if special characters in file path.

Post by seezee »

I've tried this syntax to create a symbolic link to the parent folder for the files, i.e.,

Code: Select all

cd /Users/foo/Documents //change to documents folder on the Mac's local drive
ln -s /Volumes/Path/to/Original/Directory Foldername //create soft link from directory on network drive to 'Foldername' on local drive
, but I get an error saying that 'Foldername' doesn't exist. Shouldn't it be creating 'Foldername' in the current directory, i.e., the Documents folder on the local drive'?
OpenOffice 3.2.1 on Windows XP SP3 / OpenOffice 3.3 on MacOS 10.6
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Can't open files if special characters in file path.

Post by acknak »

You might try using the OOo file dialogs: Tools > Options > OOo > General > Open/Save dialogs > Use OOo dialogs: YES (checked)

Oh, and "Options" is under the "Preferences" menu on the Mac.
AOO4/LO5 • Linux • Fedora 23
seezee
Posts: 5
Joined: Thu Feb 24, 2011 6:29 pm

Re: Can't open files if special characters in file path.

Post by seezee »

Preferences are under the OpenOffice.org menu in MacOS. The options you list do not appear in the dialog; however, under Load/Save > General there are some load & save options (just no Use OOo dialogs).
OpenOffice 3.2.1 on Windows XP SP3 / OpenOffice 3.3 on MacOS 10.6
lgusaas
Volunteer
Posts: 1582
Joined: Sun Mar 30, 2008 8:32 pm
Location: Moose Jaw, SK Canada

Re: Can't open files if special characters in file path.

Post by lgusaas »

seezee wrote:Preferences are under the OpenOffice.org menu in MacOS. The options you list do not appear in the dialog; however, under Load/Save > General there are some load & save options (just no Use OOo dialogs).
Wrong location.
The path is OpenOffice.org/Preferences/OpenOffice.org/General
There is a setting under "Open/Save dialogue boxes" to 'Use OpenOffice.org dialogue boxes"
Larry I. Gusaas
Moose Jaw, SK Canada
Website: http://larry-gusaas.com
"An artist is never ahead of his time but most people are far behind theirs." Edgard Varese
Apache OpenOffice 4.1.14 — MacBook Air (M1)—macOS Ver.15.3.1 Sequoia
seezee
Posts: 5
Joined: Thu Feb 24, 2011 6:29 pm

Re: Can't open files if special characters in file path.

Post by seezee »

@lgusaas, you are (of course) correct. I found that pref. dialogue & made the change you suggested. Then I made an alias to the My Documents folder on my NAS & placed it in my MacOS home folder. Browsed to a file via the alias in the OOo Open File dialogue & opened it.

Marking this as solved.
OpenOffice 3.2.1 on Windows XP SP3 / OpenOffice 3.3 on MacOS 10.6
Hippno
Posts: 3
Joined: Mon Oct 17, 2011 9:00 am

Re: Can't open files if special characters in file path.

Post by Hippno »

seezee wrote:@lgusaas, you are (of course) correct. I found that pref. dialogue & made the change you suggested. Then I made an alias to the My Documents folder on my NAS & placed it in my MacOS home folder. Browsed to a file via the alias in the OOo Open File dialogue & opened it.

Marking this as solved.
Registered to say how irreplaceable you help was for me. Thank you a bunch, detailed explanation and no further problems :super: :super:
OpenOffice 3.1 on Windows Vista / NeoOffice 2.2.3 with MacOS 10.4 / OpenOffice 2.4 on Ubuntu 9.04
Post Reply