On 2022-03-27 23:13+0100 Michael <confabul...@kintzios.com> wrote: > On Sunday, 27 March 2022 23:04:21 BST tastytea wrote: > > On 2022-03-27 22:35+0100 Michael <confabul...@kintzios.com> wrote: > > > I can't explain why the following cut 'n paste problem happens > > > when I select some symbols within text in Firefox and then try to > > > insert by middle-click in LibreOffice Calc. > > > > > > If I select the symbols for £ (GBP), or € (Euro) and middle click > > > upon a cell in LOCalc, a window pops up asking "Select the > > > Language to Use for Import". I leave it to "Automatic" which is > > > the default setting and the symbol plus any text is pasted with > > > the same format as the webpage. The symbols are then displayed > > > correctly in LOCalc. > > > > > > However, if I enter a cell by double clicking on it, or by > > > clicking in the edit bar, then middle click to enter the > > > selection, both £ and € symbols are entered in some strange code > > > - e.g. \u20ac > > > > I don't know why it is doing that or how to fix it, but the strange > > code is a unicode code point. You can enter it in many terminal > > emulators by pressing Control + Shift + u and then 20ac + Enter or > > display it with echo "\u20ac". > > > > Kind regards, tastytea > > Hmm ... I wonder if my setup is wrong? This is what I get in UXterm > and Konsole: > > $ echo "\u20ac" > \u20ac
Ah sorry, in bash that's echo -e "\u20ac". I was testing with zsh, where -e is enabled by default. > My locale.gen contains "en_GB.UTF-8 UTF-8" so I naively assumed > applications would be able to translate code into characters. Well, > other applications do with LOCalc, but Firefox won't. :-/