coveralls: 
[![Coverage Status](https://coveralls.io/builds/11631371/badge)](https://coveralls.io/builds/11631371)

Coverage increased (+0.6%) to 96.411% when pulling **6ede2250c3fe812408bbfa9c4b94379facf985c6 on Phyks:dev** into **8679713d01972ef173b88657395456e0fe3f2c95 on sciunto-org:master**.

coveralls: 
[![Coverage Status](https://coveralls.io/builds/11631371/badge)](https://coveralls.io/builds/11631371)

Coverage increased (+0.6%) to 96.411% when pulling **6ede2250c3fe812408bbfa9c4b94379facf985c6 on Phyks:dev** into **8679713d01972ef173b88657395456e0fe3f2c95 on sciunto-org:master**.

coveralls: 
[![Coverage Status](https://coveralls.io/builds/11631371/badge)](https://coveralls.io/builds/11631371)

Coverage increased (+0.6%) to 96.411% when pulling **6ede2250c3fe812408bbfa9c4b94379facf985c6 on Phyks:dev** into **8679713d01972ef173b88657395456e0fe3f2c95 on sciunto-org:master**.

sciunto: The failure seems to be related to this: https://github.com/travis-ci/travis-ci/issues/7771
sciunto: Could you rebase please?
diff --git a/bibtexparser/latexenc.py b/bibtexparser/latexenc.py
index e225de4..b4ac36d 100644
--- a/bibtexparser/latexenc.py
+++ b/bibtexparser/latexenc.py
@@ -85,6 +85,9 @@ def latex_to_unicode(string):
     # to normalize to the latter.
     cleaned_string = unicodedata.normalize("NFC", "".join(cleaned_string))
 
+    # Remove any left braces
+    cleaned_string = cleaned_string.replace("{", "").replace("}", "")
+
     return cleaned_string
 
 

Inconsistent results using `bibtexparser.latex_to_unicode`
Thanks for writing and maintaining this package!

I found that using `bibtexparser.latex_to_unicode` yields inconsistent results:

    >>> latex_to_unicode(r"p\^{a}t\'{e}")
    'pâté'
    >>> latex_to_unicode(r"\^{i}le")
    '{î}le'

Why are there braces around i-circumflex but not around a-circumflex or e-acut?
diff --git a/bibtexparser/tests/test_customization.py b/bibtexparser/tests/test_customization.py
index e38c078..d6d42b5 100644
--- a/bibtexparser/tests/test_customization.py
+++ b/bibtexparser/tests/test_customization.py
@@ -89,7 +89,16 @@ class TestBibtexParserMethod(unittest.TestCase):
         # From issue 121
         record = {'title': '{Two Gedenk\\"uberlieferung der Angelsachsen}'}
         result = convert_to_unicode(record)
-        expected = {'title': '{Two Gedenküberlieferung der Angelsachsen}'}
+        expected = {'title': 'Two Gedenküberlieferung der Angelsachsen'}
+        self.assertEqual(result, expected)
+        # From issue 161
+        record = {'title': r"p\^{a}t\'{e}"}
+        result = convert_to_unicode(record)
+        expected = {'title': "pâté"}
+        self.assertEqual(result, expected)
+        record = {'title': r"\^{i}le"}
+        result = convert_to_unicode(record)
+        expected = {'title': "île"}
         self.assertEqual(result, expected)
 
     ###########

pip install -e .
parse_log_pytest
requirements.txt
nose pytest
apt-get update apt-get install -y gcc
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
-e git+https://github.com/sciunto-org/python-bibtexparser.git@19051fdaeb3eea869aef1f7534d0a678f12f1b8c#egg=bibtexparser
exceptiongroup==1.2.2
future==1.0.0
iniconfig==2.1.0
nose==1.3.7
packaging==24.2
pluggy==1.5.0
pyparsing==3.2.3
pytest==8.3.5
tomli==2.2.1

name: python-bibtexparser
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - exceptiongroup==1.2.2
      - future==1.0.0
      - iniconfig==2.1.0
      - nose==1.3.7
      - packaging==24.2
      - pluggy==1.5.0
      - pyparsing==3.2.3
      - pytest==8.3.5
      - tomli==2.2.1
prefix: /opt/conda/envs/python-bibtexparser

bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_convert_to_unicode
bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_add_plaintext_fields bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_getnames bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_homogenize bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_keywords bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_page_double_hyphen_alreadyOK bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_page_double_hyphen_nothing bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_page_double_hyphen_simple bibtexparser/tests/test_customization.py::TestBibtexParserMethod::test_page_double_hyphen_space
bibtexparser/latexenc.py
bibtexparser/latexenc.py