Veteran
|
My current working settings (not as I want, but it works):
In integration options: Command Line: @php5@ -f "script_path" "@FName@" + work with editor + take input from: whole file This without "return result to editor" - its turned off! + Auto refresh editor Integrated script: <? $string = @file_get_contents($_SERVER['argv'][1]); mb_internal_encoding('UTF-8'); // this isnt really needed, but better is here to use multi byte string operations (if needed) // some operations with string, eg.: $string = mb_strtolower($string); file_put_contents($_SERVER['argv'][1],$string); ?> |
||||||||||||
_________________ ML |
Site Admin
|
Did you try to run your script without the IDE to check its output? |
||||||||||||||
_________________ The PHP IDE team |
Veteran
|
Yes dmitri. Ive tryed and everything with script is ok.
Also now my script taking input and put it into file by file_put_contents and in editor file is refreshing. So I think there are probs only with inputing results into editor as result of script. How it is done in PhpED ? I think that result of script is incorrectly copied into clipboard where encoding is changing from utf-8 to windows-1250 and then its pasted from clipboard into editor ? Right Dmitri ? |
||||||||||||
_________________ ML |
Site Admin
|
no, clipboard is not used at all.
I'll check what's up there a bit later. |
||||||||||||
_________________ The PHP IDE team |
Veteran
|
If not clipboard that something else at this stage, when the result of script is pasted into editor (string is converted into windows-1250 and later pasted again as utf-8 into editor? - when checked option: "Return results into editor").
So again: If my eg. html file is saved with windows-1250 and i run any script on it (even if script is encoded with utf8 or ide's settings are set as utf8 default encoding) result's string is pasted without any changes (probs) - all ok. But if my eg. html file is not saved with windows-1250 encoding, there are probs with it. |
||||||||||||
_________________ ML |
[resolved] Tools -> Integration - UTF-8 encoding |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by