• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Delete unicode character 0xFEFF

Explorer ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

Hello

Do you know how to delete this character 0xFEFF (ZERO WIDTH NO-BREAK SPACE) between two letters. When I copy-past it in find-change dialog box, it appears like an index tag (~I in GREP). But when I search it, only index tags are find.

 

Capture d’écran 2021-11-24 à 11.47.10.png 

Thanks

Laurent

TOPICS
How to

Views

3.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

If you don't need these characters in your text you can delet them with find-change.

Find: <feff>

change: leave empty

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

FWIW:

<FEFF>

That's not a GREP Find/Change pattern, it's a TEXT Find Change expression.

 

Laurent,

also note that this special character is used for several applications.

So be careful what instants you want to remove.

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

Thanks.

But I wan't te delete only space, not index tag.

I think it is impossible.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

FEFF is a special code, just in case you did not know.

Because it has no effect, it is used for a special meaning. It is included at the start of many, perhaps most Unicode files. Apps can see that a file starts with hex FFFE (UCS2-BE) or FEFF (UCS2-LE) or  EFBBBF (UTF-8) - all of which are U+FEFF - and know it is Unicode instead of plain text. You may often find it in your text, and it's probably best to ignore it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

"But I wan't te delete only space, not index tag"

FEFF is 0 width space

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

Hi Laurent,

your screenshot is clearly showing an FEFF special character between the R and the A.

 

You could try to shield all index markers from your search if you first apply a character formatting to all index tags that is unique to your text. Perhaps a character width of 50%. Then in a second search  you are looking for a character with pattern <FEFF> plus a character width of 100%.

 

TEXT Find pattern for index markers:

^I

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

Great idea. You are resolved the problem. 

A tip to keep in mind.

Best

Laurent

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

But also note that <FEFF> special characters are also used for other purposes.

InDesign Note objects for example. Or hyperlink anchor markers:

 

FEFF-Text-SearchReplace-WithNothing.png

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 24, 2021 Nov 24, 2021

Copy link to clipboard

Copied

Thanks for this presentation of the character.

Best

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

LATEST

This saved me a ton of time today. 3397 instances of "<feff>X" removed by "magic" 

Thanks a lot for sharing here.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines