I'm using Windows Command Line and Apache gives me the error in this encoding:
httpd.exe: Syntax error on line 163 of Z:/usr/local/apache/conf/httpd.conf:
ot load Z:/usr/local/php5/php5apache2_2.dll into server: %1 \xed\xe5 \xff\xb\xff\xe5\xf2\xf1\xff \xef\xf0\xe8\xeb\xee\xe6\xe5\xed\xe8\xe5\xec Win32.
I can't find the tool to convert the error message from this \xed\xe5 to UTF-8. What encoding does Apache use?
This Should change it to utf-8.
In httpd.conf add :
AddDefaultCharset utf-8
Make sure you put it at the bottom of the file so that it overrides pre-existing directives.
Hope that helps
Related
how can I fix this issue. this error occur when I try to run local server with Jekyll. I expect that this error came from my file name. (when the file name had changed from Thai character to English character, none of the error occur).
So, Are there any way to fix this error without changing the file name?
see the error
see the error
I have a legacy hhvm restful api.
I made some changes to its code base and now my local server throws:
Syntax only allowed in Hack files (<?hh) or with -v
Eval.EnableHipHopSyntax=true
My current hhvm specific setting inside my php.ini is:
; hhvm specific
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
date.timezone="Europe/Berlin"
hhvm.libxml.ext_entity_whitelist = file,http
I checked the log at
cat /var/log/hhvm/error.log
Yet it is empty.
I do not want to allow hack file syntax but I do want more relevant information on where the error is occurring.
I want to at least know in which file I created the error. Nice to have would be in which line and at which character position within that line occurs. The api is internal, so I do not mind to expose that information for now.
Right now I am going through the git diff, and that is not a very effective way of finding the offending code.
This won't expose the error to the server response but check your sandbox settings.
The error log may be in your hhvm sandbox, not inside the main hhvm folder:
/var/log/hhvm/sandbox/error.log
There you will find the relevant information with the error's context:
[Mon May 13 15:40:32 2019] [hphp] [25:7fe693fff700:413:000001] [] \nFatal error: Syntax only allowed in Hack files (<?hh) or with -v Eval.EnableHipHopSyntax=true in /var/www/service/src/Dreamlines/BookingService/Bundle/OperatorBundle/Soap/Call/CallBuilderFactory.php on line 177
I am working on Omega 4 Theme in Drupal 7, which uses SingularityGS.
I am trying to run this command "drush omega-guard" and I am getting following error.
error sass/h-mart.no-query.scss (Line 61 of /usr/local/rvm/gems/ruby-1.9.3-p484#omega.h_mart/gems/singularitygs-1.6.2/stylesheets/singularitygs/helpers/_str-replace.scss: Invalid US-ASCII character "\xC2")
error sass/h-mart.styles.scss (Line 61 of /usr/local/rvm/gems/ruby-1.9.3-p484#omega.h_mart/gems/singularitygs-1.6.2/stylesheets/singularitygs/helpers/_str-replace.scss: Invalid US-ASCII character "\xC2")
Compilation failed in 2 files.
This error can be resolved by changing the character encoding to UTF-8 but I am not sure from where I can do that.
I run following code from shell prompt which resolves the issue
export LC_CTYPE="en_US.UTF-8"
Reference link
http://paulchr.ablass.me/blog/schlagworte/encoding/
Check out my answer here. It might help you with the charset problems. https://stackoverflow.com/a/61100643/2828913
I've to make searchbar in MODX and i want to use AjaxSearch which is built in MODX.
I read help about how to set it and I've got page where I've got:
[!AjaxSearch? &showResults=`0` &landingPage=`52` &showMoreResults=`1` &moreResultsPage=`52`!]
And on page with ID=52 I've got:
[!AjaxSearch? &showInputForm=`0` &ajaxSearch=`0`!]
And where i click search with empty field is ok - I've got alert about it.
But when i type something and search then i've got:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error » PHP error debug
Error:
htmlspecialchars() [function.htmlspecialchars]: charset `ISO-8859-2' not supported, assuming iso-8859-1
Error type/
Nr.: Warning - 2
File:
/home/users/xxx/public_html/xxx/xxx/assets/snippets/ajaxSearch/classes/ajaxSearchInput.class.inc.php
Line: 340
Line 340 source:
if (version_compare(PHP_VERSION, '5.2.3', '>=')) $string = htmlspecialchars($string, $quote_style, $charset, $double_encode);
How can i deal with it? How can i repair this?
Thank you for help.
From the wiki you may need change the TinyMCE configuration to raw:
Searching for words containing characters like "å,ä,ö,Å,Ä,Ö" require to configure your editor to avoid entity encoding. With TinyMCE, for that, change the entity_encoding parameter from "named" to "raw" in the configuration tab and save again your documents.
Also here is a thread from the forums with a similar situation.
http://forums.modx.com/thread/?thread=26336.ne&i=1&page=2
I'm using SimpleXml to parse xmls. Sadly I've approached XML zipped into tar.gz.
When i try to load this XML i get error
Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : Start tag expected, '<' not found in /home/
Is there any way to work on tared file? If not how can untar this and work on it (it's 12 MB tared file on outside server)?
Kindest regards