Ask Your Question
0

[crosspost] What interface or service for utf encode decode

asked 2018-07-04 11:06:03 +0100

Lupp gravatar image

updated 2018-07-04 11:23:42 +0100

(Also posted as: https://forum.openoffice.org/en/forum...)

Are there services / interfaces commissioned to encode in / decode from utf (8 / 16)?
The software is obviously capable to do it on import / export. How is the kind of task represented in the uno-api? I cannot find respective entries in https://api.libreoffice.org/docs/idl/... (e.g.).

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2018-07-04 20:39:30 +0100

Jim K gravatar image

The only thing I could find in the UNO API is the IO streaming services at https://www.openoffice.org/api/docs/c....

Most programming languages have Unicode encoding capability built-in, for example, https://docs.python.org/3/howto/unico.... The main project I support currently is an LO extension that relies heavily on Unicode encoding and decoding. It is written in Python and uses an external C# application for advanced conversion, for example, to convert from Tamil script to Malayalam script.

I could post an example of how to change the encoding of kurviger.de/?point=München&point=Београд in Python or Java. However, I read through your post on forum.openoffice.org and was unable to determine clearly what you want to do with the string.

edit flag offensive delete link more

Comments

@Jim K: Thank you for your interest.
As so often I was interested mainly in understandig. The behaviour of Firefox (Not to speak of Iexplore!) when copying a URI to the clipboard baffled me.
On the other hand, using Firefox I don't need to encode for URI going to the browser. It's done there. However, I don't know what browser a "client" of mine will use.
On the third hand I want to also implement an analysis of URI returned by the service provider, and this requires %utf-8>to>character.

Lupp gravatar imageLupp ( 2018-07-04 23:54:50 +0100 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-07-04 11:06:03 +0100

Seen: 36 times

Last updated: Jul 04