To delete a surrogate-pair character in a text box, press Backspace twice. Pressing it once leaves a "�" placeholder.

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

User avatar
rakunavi
User
Posts: 1742
Joined: Sat Sep 11, 2021 5:04 am

To delete a surrogate-pair character in a text box, press Backspace twice. Pressing it once leaves a "�" placeholder.

Post by rakunavi »

Hello all,

There are text boxes in various places in the application, such as the Bookmarks pane and the Search pane. When typing a surrogate-pair character (*) here, I found that pressing Backspace once does not completely erase the character, but requires two presses.

  • (*) Wikipedia UTF-16
    https://en.wikipedia.org/wiki/UTF-16
In the English version of Windows, pressing Backspace once should display "�" as shown below. Note that some Emojis and Kanji characters are represented by surrogate pairs.

  • figure.png

    Animation.gif
Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor PRO Version: 10.6.0 build 396
- OS Version: Windows 11 Pro / Home 24H2 Build 26100.4061
- PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11333
Joined: Wed Jan 03, 2018 6:52 pm

Re: To delete a surrogate-pair character in a text box, press Backspace twice. Pressing it once leaves a "�" placeholder

Post by Daniel - PDF-XChange »

Hello, rakunavi

Thank you for the report, I have reproduced the issue here, and passed it along to the Dev team for investigation. If a ticket is needed, I will come back to add that number here.

RT#7543: Bug: Surrogate-Pair characters - backspace error

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
rakunavi
User
Posts: 1742
Joined: Sat Sep 11, 2021 5:04 am

Re: To delete a surrogate-pair character in a text box, press Backspace twice. Pressing it once leaves a "�" placeholder

Post by rakunavi »

Thank you, Daniel, for creating the ticket!
Thank you for taking time out of your busy schedule.

Although not directly related to the issue reported at the beginning of this topic, I have noticed that when surrogate-pair characters are added as base content, searching for those characters does not return any results until the file is saved and reopened. See the video for verification.

Video.webm

Hoping that the above information will be of some help to you.
Thank you so much for your continued support.

Best regards,
rakunavi

- PDF-XChange Editor PRO Version: 10.6.0 build 396
- OS Version: Windows 11 Pro / Home 24H2 Build 26100.4652
- PC Model: GMKtec Nucbox M7 Pro with HUION Kamvas Pro 19 / Lenovo IdeaPad C340-15IWL
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11333
Joined: Wed Jan 03, 2018 6:52 pm

Re: To delete a surrogate-pair character in a text box, press Backspace twice. Pressing it once leaves a "�" placeholder

Post by Daniel - PDF-XChange »

Hello, rakunavi

Thank you for the followup, I have passed this case along to the Dev team for review. Hopefully we can find the cause and get that resolved as well.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com