UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position XX: invalid continuation byte
Thanks for help, @Varsha-anjanappa, this issue was because of non-english symbols in the path name Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62107">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62107">No</a>
 > Thanks for help, @Varsha-anjanappa, this issue was because of non-english symbols in the path name

However no, the problem isn't solved - it suddenly stopped to open models with non-english characters > > Thanks for help, @Varsha-anjanappa, this issue was because of non-english symbols in the path name
> 
> However no, the problem isn't solved - it suddenly stopped to open models with non-english characters

Upd: I changed my command prompt encoding to UTF-8 following [this](https://stackoverflow.com/questions/57131654/using-utf-8-encoding-chcp-65001-in-command-prompt-windows-powershell-window/57134096#57134096) and got new error:

```
2023-10-19 01:41:23.044095: E tensorflow/tsl/platform/windows/windows_file_system.cc:362] ERROR: GetSymbolicLinkTarget cannot open file for \\?\C:\Users\termi\Desktop\stlsegm\Низ_все\Низ_без_десны только низ\Model_7_без_десны_все только низ GetLastError: 5

Traceback (most recent call last):
  File "C:\Users\termi\Desktop\stlsegm\Низ_все\Низ_без_десны только низ\2.py", line 6, in <module>
    a = tf.keras.saving.load_model('Model_7_без_десны_все только низ')
  File "C:\Users\termi\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\saving\saving_api.py", line 212, in load_model
    return legacy_sm_saving_lib.load_model(
  File "C:\Users\termi\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "C:\Users\termi\AppData\Local\Programs\Python\Python310\lib\site-packages\h5py\_hl\files.py", line 562, in __init__
    fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
  File "C:\Users\termi\AppData\Local\Programs\Python\Python310\lib\site-packages\h5py\_hl\files.py", line 235, in make_fid
    fid = h5f.open(name, flags, fapl=fapl)
  File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py\h5f.pyx", line 102, in h5py.h5f.open
  File "h5py\h5fd.pyx", line 155, in h5py.h5fd.H5FD_fileobj_get_eof
  File "h5py\h5fd.pyx", line 155, in h5py.h5fd.H5FD_fileobj_get_eof
  File "h5py\h5fd.pyx", line 155, in h5py.h5fd.H5FD_fileobj_get_eof
tensorflow.python.framework.errors_impl.UnknownError: NewRandomAccessFile failed to Create/Open: Model_7_без_десны_все только низ : Access denied.

; Input/output error
[Finished in 3.2s]
```

The folder `Низ_без_десны только низ` can be read and something can be written there. The error is encountered in Python 3.9, 3.10 and tf 2.12.0, 2.13.0, 2.14.0 @DemO-O-On This issue generally occurs when the python interpreter tries to decode the byte sequence that is not a valid UTF-8 encoded character. It could be because of the following reasons as well;
a. The data might be corrupted or invalid.
b. The data is encoded in a different encoding.
c. The data contains a character that is not supported by the UTF-8 encoding etc.
Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62107">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62107">No</a>
 The following path has only ASCII characters, but it still fails to load

Original path: `\\SERVER-1\Public\functional_models\exp_151`
Tensorflow version: 2.12.0
Error:
```
tensorflow/tsl/platform/windows/windows_file_system.cc:362] ERROR: GetSymbolicLinkTarget cannot open file for \\?\\\SERVER-1\Public\functional_models\exp_151 GetLastError: 123
Traceback (most recent call last):
  File "C:\Users\Riccardo\Documents\proj\scripts\offline.py", line 202, in <module>
    model: tf.keras.Model = tf.keras.models.load_model(model_path)
  File "C:\Users\Riccardo\Documents\venv_tmp\lib\site-packages\keras\saving\saving_api.py", line 212, in load_model
    return legacy_sm_saving_lib.load_model(
  File "C:\Users\Riccardo\Documents\venv_tmp\lib\site-packages\keras\utils\traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
  File "C:\Users\Riccardo\Documents\venv_tmp\lib\site-packages\h5py\_hl\files.py", line 562, in __init__
    fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
  File "C:\Users\Riccardo\Documents\venv_tmp\lib\site-packages\h5py\_hl\files.py", line 235, in make_fid
    fid = h5f.open(name, flags, fapl=fapl)
  File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py\h5f.pyx", line 102, in h5py.h5f.open
  File "h5py\h5fd.pyx", line 155, in h5py.h5fd.H5FD_fileobj_get_eof
  File "h5py\h5fd.pyx", line 155, in h5py.h5fd.H5FD_fileobj_get_eof
  File "h5py\h5fd.pyx", line 155, in h5py.h5fd.H5FD_fileobj_get_eof
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 191: invalid continuation byte
``` @diriki  Could you please create a new ticket with all the relevant information which we could track?
Thank you!
### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

tf 2.14.0

### Custom code

Yes

### OS platform and distribution

Windows 11 Home 22H2

### Mobile device

_No response_

### Python version

3.9.13

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

I've created a model in google colab: [here](https://colab.research.google.com/drive/1776CZxkKcetQsPkJfMACWnNel3Hj-hbA?usp=sharing). Then downloaded it and loaded few times on my computer. However after these times it stopped to load by the function `tf.keras.saving.load_model(model_name)` and started to drop this error: 

```
---------------------------------------------------------------------------
UnicodeDecodeError                        Traceback (most recent call last)
Cell In[3], line 9
      5 import time
      6 from random import sample
----> 9 model = tf.keras.saving.load_model('Верх сегментация')

File C:\Program Files\Python39\lib\site-packages\keras\src\saving\saving_api.py:262, in load_model(filepath, custom_objects, compile, safe_mode, **kwargs)
    254     return saving_lib.load_model(
    255         filepath,
    256         custom_objects=custom_objects,
    257         compile=compile,
    258         safe_mode=safe_mode,
    259     )
    261 # Legacy case.
--> 262 return legacy_sm_saving_lib.load_model(
    263     filepath, custom_objects=custom_objects, compile=compile, **kwargs
    264 )

File C:\Program Files\Python39\lib\site-packages\keras\src\utils\traceback_utils.py:70, in filter_traceback.<locals>.error_handler(*args, **kwargs)
     67     filtered_tb = _process_traceback_frames(e.__traceback__)
     68     # To get the full stack trace, call:
     69     # `tf.debugging.disable_traceback_filtering()`
---> 70     raise e.with_traceback(filtered_tb) from None
     71 finally:
     72     del filtered_tb

File C:\Program Files\Python39\lib\site-packages\h5py\_hl\files.py:562, in File.__init__(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, fs_strategy, fs_persist, fs_threshold, fs_page_size, page_buf_size, min_meta_keep, min_raw_keep, locking, alignment_threshold, alignment_interval, meta_block_size, **kwds)
    553     fapl = make_fapl(driver, libver, rdcc_nslots, rdcc_nbytes, rdcc_w0,
    554                      locking, page_buf_size, min_meta_keep, min_raw_keep,
    555                      alignment_threshold=alignment_threshold,
    556                      alignment_interval=alignment_interval,
    557                      meta_block_size=meta_block_size,
    558                      **kwds)
    559     fcpl = make_fcpl(track_order=track_order, fs_strategy=fs_strategy,
    560                      fs_persist=fs_persist, fs_threshold=fs_threshold,
    561                      fs_page_size=fs_page_size)
--> 562     fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr)
    564 if isinstance(libver, tuple):
    565     self._libver = libver

File C:\Program Files\Python39\lib\site-packages\h5py\_hl\files.py:235, in make_fid(name, mode, userblock_size, fapl, fcpl, swmr)
    233     if swmr and swmr_support:
    234         flags |= h5f.ACC_SWMR_READ
--> 235     fid = h5f.open(name, flags, fapl=fapl)
    236 elif mode == 'r+':
    237     fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl)

File h5py\_objects.pyx:54, in h5py._objects.with_phil.wrapper()

File h5py\_objects.pyx:55, in h5py._objects.with_phil.wrapper()

File h5py\h5f.pyx:102, in h5py.h5f.open()

File h5py\h5fd.pyx:155, in h5py.h5fd.H5FD_fileobj_get_eof()

File h5py\h5fd.pyx:155, in h5py.h5fd.H5FD_fileobj_get_eof()

File h5py\h5fd.pyx:155, in h5py.h5fd.H5FD_fileobj_get_eof()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 77: invalid continuation byte
```

I haven't changed anything in the code, it just suddenly stopped to open. I've tried to recreate the model in colab and download it again, changed tf version on computer to tf 2.13.0 (colab has it). Also I've tried to open another models on my pc and all of them threw this error

[Model in google drive](https://drive.google.com/drive/folders/1QIYJklw1tW5WCBanlfkIFyKFLwMGzez3?usp=sharing)

### Standalone code to reproduce the issue

```shell
https://colab.research.google.com/drive/1776CZxkKcetQsPkJfMACWnNel3Hj-hbA?usp=sharing - colab code for the nn

https://gist.github.com/DemO-O-On/65d5f1114d8163ae234a57c7789d7039 - script for loading model
```


### Relevant log output

Output from jupyter when trying to load model:

`2023-10-13 16:33:40.479946: E tensorflow/tsl/platform/windows/windows_file_system.cc:363] ERROR: GetSymbolicLinkTarget cannot open file for \\?\C:\Users\termi\Desktop\stlsegm\╨Т╨╡╤А╤Е_╨▓╤Б╨╡\╨Т╨╡╤А╤Е_╨▒╨╡╨╖_╨┤╨╡╤Б╨╜╤Л ╤В╨╛╨╗╤М╨║╨╛ ╨▓╨╡╤А╤Е╨╜╨╕╨╡\╨Т╨╡╤А╤Е ╤Б╨╡╨│╨╝╨╡╨╜╤В╨░╤Ж╨╕╤П GetLastError: 5`