Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After copying text from PDF-Viewer it sometimes happens that fi are copied as one character. When trying to save this document, there is the error message "The text contains characters that cannot be saved in the current encoding."

If you copy a long text it is hard to spot however, where these characters are. Is there a simple solution to highlight them or to convert the encoding?

I use the program TestComplete but any other program is appreciated in order to fulfill the task.

share|improve this question
highlight them .. in what PROGRAM? – akira Jan 19 '12 at 13:48
up vote 2 down vote accepted

"fi" is a ligature. If you paste it into a program such as Notepad, you can save it by specifying the encoding as UTF-8 in the File, Save As dialog. Other programs will have a similar capability to save text in UTF-8 encoding.

If you want to decompose "fi" to "f" and "i". You'd need some software that does that. Maybe iconv or recode?

 iconv -t ASCII//translit

Smartbear Software say

TestComplete supports Unicode … Script units included in the test project must be saved in either UTF-8 or UTF-16 encoding. You can select the encoding using the Character encoding property of your project.

share|improve this answer
same will go with “fl” or “ffi”, “ffl”. Sometimes “ct”, “st” in French. – Benoit Jan 19 '12 at 15:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .