invalid character error on eclipse docker using xming on windows - windows

Inavlid Character error in eclipse on docker
I have created a container using file similar to
https://github.com/batmat/docker-eclipse/blob/master/Dockerfile
on docker installed on windows 7.I did need to make a change of setting the locale first in dockerfile. I tried with both en_US.UTF8 and en_IN.UTF8.
When I start the container I am successfully able to open the eclipse in xming but eclipse is giving invalid character error on double quotes.(Probably on some other characters)
Is there any other change/setting I need to do?

This does not look like a file encoding problem (because the syntax error is not displayed at the first character), but that instead of ASCII quotation marks (") similar looking characters (e. g. ", ײ, ״, ʺ, etc.) were used.
Replace line 17 with the following line:
System.out.println("Hello There");
See also: Java Language Specification - 3.10.5. String Literals

Related

Tensorflow 2 won't compile using bazel on windows 10 - package name error

I am trying to compile Tensorflow 2 c++ API on windows, using this guide: https://itnext.io/how-to-use-your-c-muscle-using-tensorflow-2-0-and-xcode-without-using-bazel-builds-9dc82d5e7f80
All dependencies where downloaded and installed.
When getting to the actual compilation command:
bazel build -c opt — verbose_failures //tensorflow:libtensorflow_cc.so
taken fro within the tensorflow root directory, i get the following Error:
Skipping 'ù': Bad target pattern 'ù': package names may contain A-Z, a-z, 0-9, or any of ' !"#$%&'()*+,-./;<=>?[]^_`{|}~' (most 7-bit ascii characters except 0-31, 127, ':', or '\')
A snippet of the Powershell input and output related to the issue
As seen in the snippet, The root directory does not contain any special characters.
I have searched the web for hours and couldn't find a solution.
Does anyone have a suggestion how to tackle this?
This is an error about the command line.
Maybe you accidentally entered invalid characters that confused Bazel. I do that sometimes if I jump left and right with Ctrl+Left / Ctrl+Right and accidentally hit a key inbetween.
Try typing the command again (do not copy-paste it), and running it.
Also, it is --verbose_failures (starting with two - characters), not - verbose_failures.

Replace incorrectly displayed special chars in bash

I've uploaded a big number of files including their folder structure to my Ubuntu 12.04 LTS Server using WinSCP.
The goal is to access these files in Owncloud.
However, all files that contain special character like German Umlauts cause problems. In Ownclouds view, their name is cut off at the special character and trying to view that folder or file will send you back to the folder root.
Using ls, the special character is always displayed as a question mark, e.g. "Moterschwei?en1.jpg"
What works is manually renaming them through "mv" in the shell. Inserting the special char properly, e.g. "Motorschweißen1.jpg" for this example, does work, but doing this for all of them would take ages.
Using find . -name "?" will not yield any hits.
Is there any way to replace all of those special characters, e.g. with an underscore?
Try the command rename:
rename 'y/\W/_' *
The above command will replace all non alphanumeric characters with _. See http://perldoc.perl.org/perlop.html#Regexp-Quote-Like-Operators and http://perldoc.perl.org/perlre.html#Special-Backtracking-Control-Verbs for the documentation of perl regex expression.

How to get a utf code from symbol in linux

I'm struggling with a special symbol in a text file on linux. I actually successfully pasted it between the following letters "a‏a" (my cursor in Geany stops but no character is displayed).
I'd like to know what's the easiest way to get its utf8 code (in the form U+0000). I'm using ubuntu and geany and I tried hexdump on a file containing it but I'm obviously missing something.
You could open the file with vim, put the text cursor over the character, then type 'ga' (without quotes) and it will display the character code in decimal, hex and octal in the status line.

Unknown Character

Facing a typical issue of some unknown character.
Actually trying to compile some packages in database through script and got an error as below:
SP2-0734: unknown command beginning "?SET DEF..." - rest of line ignored.
When i open the log file in notepad++ it shows the line as shown above.
Now, if I open the same log file in scite editor it shows the same file as:
SP2-0734: unknown command beginning "SET DEF..." - rest of line ignored.
Not getting what could be the issue.
Any help would be welcomed.
Your script has an unprintable character at the start (as you discovered from comments), which some editors don't display at all, and others display as an unknown character. "" is the byte order mark:
The UTF-8 representation of the BOM is the byte sequence
0xEF,0xBB,0xBF. A text editor or web browser interpreting the text as
ISO-8859-1 or CP1252 will display the characters  for this.
From that article some editors (notable Notepad) add that automatically. It should be safe to open the file with a hex editor and remove the extra character, and you'll then be able to run the script normally.

Giving path with blank spaces to iis express fails

When I run IISExpress from command line, a path like c:\site works fine.
But if I change it to:
H:\Users\Username\Document\Visual Studio 2010\Projects\TestIISExpress\TestIISExpress\bin\Debug\site
it fails i.e. it gives general error saying command line parameters switch needs - ,/ etc etc.
Anybody faced same issue? Does it works on yours?
I would believe if you have a path with spaces in it, you'd have to put it into double quotes:
"H:\Users\Username\Document\Visual Studio 2010\Projects\TestIISExpress\TestIISExpress\bin\Debug\site"
Does that help?
I have found, using IIS Express 8.0, that in order to provide a path switch that includes spaces the path must be preceded by a double quote, but there should be no terminating double quote, for instance:
"%ProgramFiles%\IIS Express\iisexpress.exe" -path:"c:\my site\
I have no explanation for this behaviour, I have found no documentation concerning this issue, and I do not know what program versions this applies to.

Resources