Jerry Chou

Results 13 comments of Jerry Chou

thanks for the solution! I am also experienced this issue that when page with scroll and open modal will cause backend page re-rendering. From user's perspective a "flickering" when open/close...

@QL-AR 将 `%USERPROFILE%\.paddlehub\modules\fastspeech2_baker\assets\fastspeech2_nosil_baker_ckpt_0.4\phone_id_map.txt` 这个文件的编码格式从UTF-8改成GBK ![covert_to_gbk](https://user-images.githubusercontent.com/1628551/164372778-5e59b8bf-bc03-40cf-a997-62641dd1ff95.png)

详细说说这个问题吧,这个问题不是Baidu的锅,但是造成了很多的困扰。 Python的`open`调用,如果你[不指定encoding](https://github.com/PaddlePaddle/PaddleHub/blob/release/v2.2/modules/audio/tts/fastspeech2_baker/module.py#L43),那么[会使用系统默认的encoding](https://docs.python.org/3/library/functions.html#open),你可以使用下面的脚本看你的系统默认encoding是什么 > `python -c "import locale; print(locale.getpreferredencoding(False))"` 如果你的Windows的System locale设置的是中文的话,那么你会看到cp936,这是Windows下GBK(GB2132)编码对应的[codepage](https://docs.microsoft.com/en-us/windows/win32/intl/code-page-identifiers),那么现在问题来了: 你使用GBK编码去打开一个UTF8编码的文件,所以就报错了,报错信息类似: > 'gbk' codec can't decode byte 0x8c in position 2088: illegal multibyte sequence 修改上面的文件编码为GBK其实是治标不治本的操作,因为PaddlePaddle,包括很多第三方库在使用`open`打开文件的时候都是不指定编码的。 好在Windows可以通过修改system locale中的多语言程序的UTF8支持来修复这个问题。 你可以通过运行`intl.cpl`或者在系统设置中更改系统的默认行为,这样在使用`open`调用的时候就会默认使用UTF8来解码。参考下图 ![set_system_locale_to_support_utf8](https://user-images.githubusercontent.com/1628551/164379397-25472e13-b302-4218-b04b-a1e23e5392af.png)

继续踩坑,继续给解决方案。 如果你按照上面的设置,那么应用程序如果不支持Unicode的话,会出现乱码。包括你解压缩一些文件名,路径名。 那么现在怎么办呢?看看[源码吧](https://github.com/python/cpython/blob/3.9/Lib/locale.py#L622) ```python if sys.platform.startswith("win"): # On Win32, this will return the ANSI code page def getpreferredencoding(do_setlocale = True): """Return the charset that the user is likely using.""" if...

@QL-AR 你看下README,是否系统依赖或者paddlehub的module没有安装成功。 https://github.com/PaddlePaddle/PaddleHub/tree/release/v2.2/modules/audio/asr/deepspeech2_librispeech

@QL-AR 是依赖没有装,文档说的挺清楚,需要安装下面的依赖。由于你是Windows,不确定是否支持。 ![libsndfile_swig](https://user-images.githubusercontent.com/1628551/164888619-92c1bfb2-82c0-4670-8c02-55c7e8af2df5.png)

@ravibpatel Thanks for the great works! I have same issue, that's I'd like to log some of errors internally inside autoupdater to diagnose the issue by myself, instead of just...

我也遇到了同样的问题。比如我搜索Invoke,发现只有一篇文章,但其实不止一篇文章。 环境: MacOS 10.13 WizNote for Mac 2.5.9

我尝试过在网页中搜索,结果是一样的,只显示一篇文章,其实不止一篇文章。

解决方案也是简单,将不能搜索的这篇文章删除重新加一下。 所以还是索引的问题,可是怎么重建索引呢。