SingularityGS Invalid US-ASCII character "\xC2") - shell

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

Related

Error when deploying chaincode in Fabric test network

Environment: Fabric 2.4.2 Ubuntu20.0.4 go19.5
I've just make a directory in the work directory of minifab, and add my main.go with go.mod go.sum copied from the other chaincode sample. Then I install the code with the command "minifab ccup -n contract -l go -v 1.0 ", finally, it reports to me these error
# Run the chaincode install script on cli container ***********
non-zero return code
Error: failed to normalize chaincode path: 'go list' failed with: can't load package: package simple:
main.go:13:1: illegal UTF-8 encoding
main.go:13:2: illegal UTF-8 encoding
main.go:13:5: illegal UTF-8 encoding
main.go:13:6: illegal UTF-8 encoding
main.go:13:7: illegal UTF-8 encoding
main.go:13:8: illegal UTF-8 encoding
main.go:13:9: illegal UTF-8 encoding
main.go:13:10: illegal UTF-8 encoding
main.go:13:11: illegal UTF-8 encoding
main.go:13:12: illegal UTF-8 encoding
main.go:16:25: illegal UTF-8 encoding
main.go:16:26: illegal UTF-8 encoding
main.go:16:27: illegal UTF-8 encoding
main.go:16:28: illegal UTF-8 encoding
main.go:16:29: illegal UTF-8 encoding
main.go:16:33: illegal UTF-8 encoding
main.go:16:34: illegal UTF-8 encoding: exit status 1
Error: failed to read chaincode package at 'contract_go_1.0.tar.gz': open contract_go_1.0.tar.gz: no such file or directory
# STATS *******************************************************
minifab: ok=31 failed=1
How can I exactly install my chaincode? What happened to it?
I have solved the problem.
Because I have used the winscp as a tool to copy main.go go.mod go.sum into the directory, so the encode of the code has changed. As a result, the go cannot be complied.
I just touch the main.go in Xshell linking to my server, then I successs!
minifab: ok=107 failed=0

MoinMoin 1.9 invalid syntax

I'm trying to transfer MoinMoin to a new machine (Mac) and keep getting and invalid syntax error when I try to run wikiserver.py (with python2.6):
/moin-1.9-master/MoinMoin/support/werkzeug/utils.py", line 189
"area",
^
SyntaxError: invalid syntax
I'd appreciate any helpful hints!
I was following the instructions at https://moinmo.in/DesktopEdition and expected the server to start up, but instead I got the invalid syntax error.

Jekyll: incompatible character encodings: UTF-8 and Windows-874 (Encoding::CompatibilityError)

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

How do I resolve regex parsing error while opening RStudio on Mac

I see this error when I try opening RStudio on Mac after installing it:
Unexpected exception: Escape sequence was neither a valid property nor a valid character class name. The error occurred while parsing the regular expression fragment: 'LUDE=C:\py>>>HERE>>>thon27\inc'.
From the log:
ERROR R SUICIDE: Unexpected exception: Escape sequence was neither a valid property nor a valid character class name. The error occurred while parsing the regular expression fragment: 'LUDE=C:\py>>>HERE>>>thon27\inc'.; LOGGED FROM: void <anonymous namespace>::rSuicide(const std::string &) /Users/rstudio/rstudio/src/cpp/session/SessionMain.cpp:1023
How do I resolve the issue?
The RStudio installer version is 1.1.463. I saw the same issue with 1.1.453 as well. I am in Mac OS Sierra (version 10.12.6).
I had some erroneous paths in $ cat /etc/paths. Removed them and RStudio works fine.

apache weird error message encoding

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

Resources