Description: If I save a file with Arabic or Persian Name or the file I open have these characters LibreOffice shows unreadable characters for file name in title bar or selection page. Actual Results: Wrong display of file name in Persian and Arabic. Expected Results: Correct display of file name in Persian and Arabic. Reproducible: Always User Profile Reset: No Additional Info: [Information automatically included from LibreOffice] Locale: en-US Module: TextDocument [Information guessed from browser] OS: Linux (All) OS is 64bit: yes
Created attachment 181983 [details] Screen Shot of the problem in start screen.
Created attachment 181984 [details] Screen Shot of the problem in Writer's title bar.
Looks like UTF-8 displayed as ISO 8859-1.
This seems like a mis-configured system, the title bar is handled by the window manager not LibreOffice and it shows the same issue.
Do the files show OK in the system file manager?
(In reply to Mike Kaganski from comment #5) > Do the files show OK in the system file manager? So it is a LibreOffice issue after all. I think this and bug 145758 should be duplicates of bug 125995.
(In reply to خالد حسني from comment #6) > (In reply to Mike Kaganski from comment #5) > > Do the files show OK in the system file manager? > > So it is a LibreOffice issue after all. I think this and bug 145758 should > be duplicates of bug 125995. Though we probably need a screenshot of About LibreOffice from Morteza to see what locale is used.
Created attachment 182040 [details] macOS start center
Created attachment 182041 [details] macOS title bar
no repro in: Version: 7.4.0.2 / LibreOffice Community Build ID: 1512ce97d7ed39dce3121f7e15651fd8895f950e CPU threads: 10; OS: Mac OS X 12.5; UI render: default; VCL: osx Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded FWIW
Created attachment 182042 [details] About LibreOffice Screenshot
(In reply to Mike Kaganski from comment #5) > Do the files show OK in the system file manager? yes they are ok in any file manager I use.
(In reply to خالد حسني from comment #7) > (In reply to خالد حسني from comment #6) > > (In reply to Mike Kaganski from comment #5) > > > Do the files show OK in the system file manager? > > > > So it is a LibreOffice issue after all. I think this and bug 145758 should > > be duplicates of bug 125995. > > Though we probably need a screenshot of About LibreOffice from Morteza to > see what locale is used. I attached the screenshot. Also I live booted to fedora35 and title bar was ok in there.
(In reply to خالد حسني from comment #6) > (In reply to Mike Kaganski from comment #5) > > Do the files show OK in the system file manager? > > So it is a LibreOffice issue after all. I think this and bug 145758 should > be duplicates of bug 125995. bug 125995 looks very relevant; but being not very familiar with Linux system locale and encoding, I feel is a bit different. In bug 125995, Jan-Marek likely used a system with a different locale, and explicitly set locale to C when starting LibreOffice. That likely made *encoding* used by LibreOffice different from what was used elsewhere in the system. In this bug (and bug 145758, to which this bug is definitely a duplicate), likely C is the *system* locale; and reading the mention of "LANG=C.UTF-8" in bug 125995, I wonder what is the system *encoding* used on these systems, such that LibreOffice obviously uses ASCII/ISO 8859-1, and other tools use UTF-8? Is there a wrong detection of system encoding for Linux?
(In reply to Mike Kaganski from comment #14) > (In reply to خالد حسني from comment #6) > > (In reply to Mike Kaganski from comment #5) > > > Do the files show OK in the system file manager? > > > > So it is a LibreOffice issue after all. I think this and bug 145758 should > > be duplicates of bug 125995. > > bug 125995 looks very relevant; but being not very familiar with Linux > system locale and encoding, I feel is a bit different. > > In bug 125995, Jan-Marek likely used a system with a different locale, and > explicitly set locale to C when starting LibreOffice. That likely made > *encoding* used by LibreOffice different from what was used elsewhere in the > system. > > In this bug (and bug 145758, to which this bug is definitely a duplicate), > likely C is the *system* locale; and reading the mention of "LANG=C.UTF-8" > in bug 125995, I wonder what is the system *encoding* used on these systems, > such that LibreOffice obviously uses ASCII/ISO 8859-1, and other tools use > UTF-8? Is there a wrong detection of system encoding for Linux? Both are definitely duplicates. AFAIK, there is no way to detect locale encoding other than parsing the locale name, and C locale has traditionally not been a UTF-8 encoding. To fix there immediate issue, both reporters should use a locale that is explicitly UTF-8, e.g. en_US.UTF-8 or fa_IR.UTF-8. *** This bug has been marked as a duplicate of bug 125995 ***