charset iso-8859-1
Hi, I am using phpstorm in version 2017.2.
On the web server are files with charset = iso-8859-1, if I open this with phpsorm are the letters äöü defective.
What I have already tried is to add an exception for this file via File -> Settings -> Editor -> File Encoding. I select the file under Encoding ISO-8859-1 and choose Ok / Apply. The next time you open the file, the letters are still defective and the exception rule in the settings is no longer visible.
greeting
M
请先登录再写评论。
Hello,
When you open the file next time and encoding is reset, can you see any errors in Help > Show Log in ... > idea.log right after that?
idea.log from today
2017-07-21 08:55:02,012 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2017-07-21 08:55:02,024 [ 12] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.0
2017-07-21 08:55:02,025 [ 13] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.25 (IDE-managed HiDPI)
2017-07-21 08:55:02,043 [ 31] INFO - #com.intellij.idea.Main - IDE: PhpStorm (build #PS-172.3317.83, 18 Jul 2017 14:02)
2017-07-21 08:55:02,043 [ 31] INFO - #com.intellij.idea.Main - OS: Linux (4.4.0-79-generic, amd64)
2017-07-21 08:55:02,043 [ 31] INFO - #com.intellij.idea.Main - JRE: 1.8.0_152-release-915-b5 (JetBrains s.r.o)
2017-07-21 08:55:02,043 [ 31] INFO - #com.intellij.idea.Main - JVM: 25.152-b5 (OpenJDK 64-Bit Server VM)
2017-07-21 08:55:02,048 [ 36] INFO - #com.intellij.idea.Main - JVM Args: -Xbootclasspath/a:/usr/local/PhpStorm-171.4424.11/lib/boot.jar -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.renderer=sun.java2d.marlin.MarlinRenderingEngine -XX:ErrorFile=/home/michael/java_error_in_PHPSTORM_%p.log -XX:HeapDumpPath=/home/michael/java_error_in_PHPSTORM.hprof -Didea.paths.selector=PhpStorm2017.2 -Djb.vmOptionsFile=/usr/local/PhpStorm-171.4424.11/bin/phpstorm64.vmoptions -Didea.platform.prefix=PhpStorm -Didea.jre.check=true
2017-07-21 08:55:02,048 [ 36] INFO - #com.intellij.idea.Main - ext: /usr/local/PhpStorm-171.4424.11/jre64/lib/ext: [cldrdata.jar, sunpkcs11.jar, sunec.jar, sunjce_provider.jar, dnsns.jar, zipfs.jar, localedata.jar, nashorn.jar, meta-index, jfxrt.jar, jaccess.jar]
2017-07-21 08:55:02,048 [ 36] INFO - #com.intellij.idea.Main - JNU charset: UTF-8
2017-07-21 08:55:02,069 [ 57] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 20 ms
2017-07-21 08:55:02,750 [ 738] INFO - .intellij.idea.IdeaApplication - WM detected: KWin
2017-07-21 08:55:03,503 [ 1491] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor yaml-specific.xml
2017-07-21 08:55:03,518 [ 1506] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-java-support.xml
2017-07-21 08:55:03,519 [ 1507] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor uml-properties-support.xml
2017-07-21 08:55:03,568 [ 1556] INFO - llij.ide.plugins.PluginManager - Cannot find optional descriptor js-nashorn-support.xml
2017-07-21 08:55:04,210 [ 2198] INFO - llij.ide.plugins.PluginManager - 63 plugins initialized in 1056 ms
2017-07-21 08:55:04,211 [ 2199] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (0.1), AngularJS (172.3317.83), Apache config (.htaccess) support (172.3317.83), Behat Support (172.3317.83), Blade Support (172.3317.83), CSS Support (172.3317.83), CVS Integration (11), Codeception Framework (172.3317.83), CoffeeScript (2.0), Command Line Tool Support (172.3317.83), Copyright (8.1), Database Tools and SQL (172.3317.83), Docker integration (3.0.0), Drupal Support (172.3317.83), File Watchers (172.3317.83), GNU GetText files support (*.po) (172.3317.83), Gherkin (999.999), Git Integration (8.1), GitHub (172.3317.83), Google App Engine Support for PHP (172.3317.83), HTML Tools (2.0), Haml (172.3317.83), IDEA CORE (172.3317.83), Ini4Idea (172.3317.83), IntelliLang (8.0), JavaScript Debugger (1.0), JavaScript Intention Power Pack (0.9.4), JavaScript Support (1.0), Joomla! Support (172.3317.83), Less support (172.3317.83), Markdown support (172.3317.83), NodeJS (172.3317.83), PHP (172.3317.83), PHP Docker (172.3317.83), PHP Remote Interpreter (172.3317.83), PHPSpec BDD Framework (172.3317.83), Perforce Integration (2.0), Performance Testing (172.3317.83), Phing Support (172.3317.83), PhpStorm Workshop (172.3317.83), QuirksMode (172.3317.83), REST Client (172.3317.83), ReStructuredText Support (172.3317.83), Refactor-X (2.01), Remote Hosts Access (0.1), SSH Remote Run (0.1), Sass support (172.3317.83), Settings Repository (172.3317.83), Subversion Integration (1.1), Task Management (1.0), Terminal (0.1), TextMate bundles support (172.3317.83), Time Tracking (1.0), Twig Support (172.3317.83), UML Support (1.0), Vagrant (172.3317.83), W3C Validators (2.0), WordPress Support (172.3317.83), XPathView + XSLT Support (4), XSLT-Debugger (1.4), YAML (172.3317.83), hg4idea (10.0), tslint (172.3317.83)
2017-07-21 08:55:04,931 [ 2919] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2017-07-21 08:55:04,992 [ 2980] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: /usr/local/PhpStorm-171.4424.11/bin/fsnotifier64
2017-07-21 08:55:05,004 [ 2992] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2017-07-21 08:55:05,157 [ 3145] INFO - pi.util.registry.RegistryState - Registry values changed by user:
2017-07-21 08:55:05,157 [ 3145] INFO - pi.util.registry.RegistryState - dumb.aware.run.configurations = true
2017-07-21 08:55:06,004 [ 3992] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=15, fontScale=0.0; restored: fontSize=15, fontScale=1.25
2017-07-21 08:55:06,596 [ 4584] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2017-07-21 08:55:06,718 [ 4706] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2017-07-21 08:55:06,767 [ 4755] INFO - gs.impl.UpdateCheckerComponent - channel: release
2017-07-21 08:55:06,955 [ 4943] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:73
2017-07-21 08:55:06,964 [ 4952] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:8
2017-07-21 08:55:07,014 [ 5002] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:38
2017-07-21 08:55:07,015 [ 5003] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2017-07-21 08:55:07,066 [ 5054] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2017-07-21 08:55:07,249 [ 5237] INFO - plication.impl.ApplicationImpl - 80 application components initialized in 4102ms
2017-07-21 08:55:07,253 [ 5241] INFO - .intellij.idea.IdeaApplication - App initialization took 6792 ms
2017-07-21 08:55:08,017 [ 6005] INFO - pl$FileIndexDataInitialization - Initialization done:1053
2017-07-21 08:55:08,347 [ 6335] INFO - exImpl$StubIndexInitialization - Initialization done:329
2017-07-21 08:55:08,992 [ 6980] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=15, fontScale=1.25
2017-07-21 08:55:08,996 [ 6984] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=15, fontScale=1.25; restored: fontSize=15, fontScale=1.25
2017-07-21 08:55:09,643 [ 7631] INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@5cb35597
2017-07-21 08:55:09,677 [ 7665] INFO - ellij.project.impl.ProjectImpl - 114 project components initialized in 1664 ms
2017-07-21 08:55:09,800 [ 7788] INFO - le.impl.ModuleManagerComponent - 1 module(s) loaded in 122 ms
2017-07-21 08:55:10,694 [ 8682] WARN - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2017-07-21 08:55:10,996 [ 8984] INFO - ellij.project.impl.ProjectImpl - 19 project components initialized in 129 ms
2017-07-21 08:55:11,004 [ 8992] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@226a6847
2017-07-21 08:55:11,274 [ 9262] INFO - PerformancePlugin - Performance Plugin is in silent mode
2017-07-21 08:55:11,454 [ 9442] INFO - .openapi.application.Preloader - Finished preloading com.intellij.codeInsight.completion.CompletionPreloader@75757a65
2017-07-21 08:55:11,962 [ 9950] INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 129ms under project opening modal progress
2017-07-21 08:55:12,079 [ 10067] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 276ms; general responsiveness: ok; EDT responsiveness: ok
2017-07-21 08:55:12,771 [ 10759] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 831ms; general responsiveness: ok; EDT responsiveness: ok
2017-07-21 08:55:13,010 [ 10998] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 237ms; general responsiveness: ok; EDT responsiveness: 0/1 sluggish, 1/1 very slow
2017-07-21 08:55:13,377 [ 11365] INFO - tartup.impl.StartupManagerImpl - /mnt/data/michael/git/vm.ag_tools/.idea case-sensitivity: expected=true actual=true
2017-07-21 08:55:14,677 [ 12665] INFO - tartup.impl.StartupManagerImpl - Some post-startup activities freeze UI for noticeable time. Please consider making them DumbAware to do them in background under modal progress, or just making them faster to speed up project opening.
2017-07-21 08:55:14,678 [ 12666] INFO - tartup.impl.StartupManagerImpl - ProjectInspectionProfileStartUpActivity run in 106ms on UI thread
2017-07-21 08:55:14,941 [ 12929] INFO - tor.impl.FileEditorManagerImpl - Project opening took 7010 ms
2017-07-21 08:55:19,040 [ 17028] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 49ms; general responsiveness: ok; EDT responsiveness: ok
2017-07-21 08:55:19,084 [ 17072] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 44ms; general responsiveness: ok; EDT responsiveness: ok
2017-07-21 08:59:07,503 [ 245491] INFO - s.webDeployment.PublishUtils$1 - Using "/tmp/vfs_cache" as temporary files store.
2017-07-21 09:00:04,462 [ 302450] INFO - tellij.xml.Html5SchemaProvider - HTML5_SCHEMA_LOCATION = /usr/local/PhpStorm-171.4424.11/lib/phpstorm.jar!/resources/html5-schema/html5.rnc
2017-07-21 09:00:04,462 [ 302450] INFO - tellij.xml.Html5SchemaProvider - XHTML5_SCHEMA_LOCATION = /usr/local/PhpStorm-171.4424.11/lib/phpstorm.jar!/resources/html5-schema/xhtml5.rnc
2017-07-21 09:00:04,462 [ 302450] INFO - tellij.xml.Html5SchemaProvider - CHARS_DTD_LOCATION = /usr/local/PhpStorm-171.4424.11/lib/phpstorm.jar!/resources/html5-schema/html5chars.ent
Theire is no entry in File -> Settings -> Editor -> File Encoding
Trying to reproduce that with no luck.
Please clarify if the files are located within the project directory, or remotely?
http://recordit.co/6RjkXmqUTI
@Michael Feske
Need more details.
Can you reproduce the same in brand new project (with that/those problematic file(s) only (so it's small project))?
If it works fine there -- after you assign correct encoding at "File -> Settings -> Editor -> File Encoding" -- does it actually work (in that session)?
If it works (IDE reads them using correct encoding) -- can you please check if such info gets saved into "encodings.xml" file in .idea subfolder after project is closed?
ALSO:
1) What kind of files are those -- some text/HTML or some code (e.g. PHP/JavaScript)?
If code files -- do you have any breakpoints set in them?
2) Do you have any .editorconfig files in your project? If so -- show their content.
So far it could be https://youtrack.jetbrains.com/issue/IDEA-124495 or one of the related tickets...