简体   繁体   English

PhpStorm 编辑器编码问题

[英]PhpStorm editor encoding issue

在此处输入图片说明

I just have updated my PhpStorm to version 2016.1 and I have a really strange issue in editor, as you can see in the screenshot, some characters are screwed up.我刚刚将我的PhpStorm更新到2016.1版,我在编辑器中遇到了一个非常奇怪的问题,正如您在屏幕截图中看到的那样,某些字符被搞砸了。

When I copy/paste the text it is displayed correctly (the text before the require is " dojo "), I have tried changing the file encoding but without success (the file is UTF-8)当我复制/粘贴正确显示的文本时(要求之前的文本是“ dojo ”),我尝试更改文件编码但没有成功(文件是 UTF-8)

Someone already had this problem ?有人已经遇到这个问题了吗? It is kind of annoying.这有点烦人。 See below my file encoding.请参阅下面我的文件编码。

在此处输入图片说明

The problem don't seem to be the font (as suggested in comments) because italic is rendered:问题似乎不是字体(如评论中所建议的),因为呈现斜体

在此处输入图片说明

It's not a problem with encoding .. but issue with your font.这不是编码问题..而是你的字体问题。 If you look at the screen -- only italic (or italic+bold) text has such problem.如果你看屏幕——只有斜体(或斜体+粗体)文本有这样的问题。

How to check it:如何检查:

  1. If you select the text and copy-paste it into another editor (eg Notepad++ if you are on Windows) .. or even here into the actual Question -- will it copy that mangled text fine (I mean -- will it read "dojo" when pasted)?如果您选择文本并将其复制粘贴到另一个编辑器中(例如 Notepad++,如果您使用的是 Windows) .. 或者甚至在这里进入实际问题 - 它是否会很好地复制该损坏的文本(我的意思是 - 它会读取“dojo "粘贴时)?
  2. Will it display it fine if you try another standard color schema -- eg "Default" or "Darcula"?如果您尝试另一种标准颜色模式——例如“默认”或“达库拉”,它会显示得很好吗?

The issue can be with actual font (corrupted font files; somehow incomplete font data etc) .. or maybe even the with the way how IDE uses/renders it (eg font may not have separate "bold italic" style so IDE tries to mimic it and fails).问题可能与实际字体有关(损坏的字体文件;不知何故不完整的字体数据等)……或者甚至可能与 IDE 使用/呈现它的方式有关(例如,字体可能没有单独的“粗斜体”样式,因此 IDE 试图模仿它并失败)。

  • Either fix your font (re-download and reinstall; look for newer version maybe)要么修复你的字体(重新下载并重新安装;也许寻找更新的版本)
  • .. or use another font .. 或使用其他字体
  • .. or do not use italic (bold+italic) style .. 或不使用斜体(粗体+斜体)样式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM