Non-hex character in hex string
I'm getting this messsage when I try to open an Illustrator file:
"Acrobat PDF file format is having difficulties. Non-hex character in a string."
I', using illustrator CS6 and I need my file opened..!
Nobody can know without seeing the file and having more info about your system. Does the file open in Acroibat/ Adobe Reader for instance?
Mylenium
Similar Messages
-
Non-Alphanumeric Character in a String
I understand if we have a non-alphanumeric character in a String, we have to put a backward slash in front of that character. For example, we have to put a backward slach in front of a "backward slash". Eg. we do \\ to put a backward slash in a String.
What about a dot (.) or a dash (-)? Do we have to do the same thing?No, it's only for control characters like "newline", characters with special meaning in strings i.e. " and \ and any character that can't be represented in the character encoding of your java source file.
-
Non-hex character in hex string after upgrade to Yosemite
Hi,
When I try to open some of my files I get an error: "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string". I could open the files before.
The only thing I've done since I opened the file last was to upgrade to Yosemite. The error occurs on both my Mac Pro (late 2013) and Mac Book Pro with Yosemite. Unfortunately, I have no access to a Mac with Mavericks and CS6 but I will try to fix one to verify that the file works there.
Affected files (Created in Illustrator CS6 on Mavericks):
services.ai
visual guidelines v.0.4.pdf
visual guidelines.ai
Tested steps:
Open previous versions of the same file from our repository
Update Illustrator CS6 to latest version
Download Illustrator CC
Tried to Place the file into another file (same error)
Tried to repair file Enable content recovery mode | Illustrator CS2-CS5Hi svepdesigncenter,
How you are accessing those files from your repository?
There might be chances of getting files corrupted when transferring.
File may have been sent as ascii when it should have been sent as binary or vice versa.
In 99% of transfers it's ALWAYS safest to zip an AI or eps file before sending it anywhere.
Regards,
Sumit Singh -
Replace hex character in a string with another hex character
Hi Guys,
Heres a problem scenario, hex character 92 looks very much like hex character 27 (apostrophe).
I need to write a program that can replace all hex character 92 to hex 27 in a string.
Being a novice on the regular expressions, I would appreciate if somebody can show
the exact syntax to to perform this replacement.
Many Thanks
-AnilI don't think you need to use regex to do this:
String s = something();
char a = 0x27;
char b = 0x92;
s.replace(a,b);
And don't forget that since Strings are immutable you need:
s = s.replace(a,b);to do anything useful. -
Find a non-numeric character in a string
I have a 3 strings (1) 'AB99CDEFGH0012%' (2) 'ABCDEFGH' (3) 'ABCD11'
how do i find out a that string has non numeric characters
ThanksSELECT TO_NUMBER(:String) FROM DUAL;
is a quick way to find out :)
A good method would be.....
SELECT 1 FROM DUAL WHERE TRANSLATE(:String, 1234567890, '-') IS NOT NULL;
The statement will filter out ALL numbers, leaving behind any characters, A, B, @, ~, etc... -
Identify Non English Character in a String
All,
We have a requirement to Identify the Non English Characters from the User Key In data and return an error message saying only valid English, Numeric and some special characters are allowed.
For Example, If the User enters data like "This is a Test data" then the return value should be true. or if he enters something like "My Native Language is inglés" then it should return false. Similarly any Chinese, russian or japansese character entryies should also return false.
How can we achieve this?
Thanks,
Nagarajan.Hi Nagarajan,
You could use Unicode character blocks or simply craft a regular expression that contains all the characters you need. The latter is easy to understand and gives you full control over which characters you want to allow. E.g. I assume you might want something like this:
if(!"This is a proper input string".matches("[\\s\\w\\p{Punct}]+")) {
// Issue error message and re-get input string
The String method matches() takes a regular expression as input parameter. If you haven't dealt with regular expressions before, check out the Java API help for class java.util.regex.Pattern. Here's a short breakdown of the pattern I used:
<ol>
<li>The square brackets [] enclose a list of allowed characters; here you can explicitly list all allowed characters.</li>
<li>You can specify ranges like a-z as a character class, list individual characters like ;:| or utilize predefined character classes (\s for any whitespace character, \w for all letters a-z and A-Z, underscore and 0-9 and the posix class \p for a list of punctuation symbols). For a complete list check Java API help on java.util.regex.Pattern.
<li>The + at the end indicates that the characters listed can occur once or more.</li>
</ol>
There's other ways to achieve what you want, but I think this might be an easy way to start with.
Cheers, harald -
Php / mysql replace non-ascii character in a string
I have a script that converts a ms word document to text then
uploads that to a blob field on a mysql db.
During the conversion some characters my not be recognised.
When i then call up the blob for display on the browser...those
characters show up as unknown characters with a ? or box. Is there
a way to preg_replace those unknown characters before displaying
them.
thanks
ian.oO(surfinIan)
>I have a script that converts a ms word document to text
then uploads that to a
>blob field on a mysql db.
> During the conversion some characters my not be
recognised. When i then call
>up the blob for display on the browser...those characters
show up as unknown
>characters with a ? or box. Is there a way to
preg_replace those unknown
>characters before displaying them.
What about fixing the encoding problem instead? If chars get
lost during
such a transfer
document->script->database->script->browser it's always
an encoding problem somewhere down the road.
The recommendation these days is to use UTF-8, which avoids
most of
these old problems. You just have to make sure that your
documents are
properly stored as UTF-8 in the database and delivered as
such to the
script and the browser, then you don't have to worry about
special chars
anymore.
That's just the general idea. I can't be more specific, since
I don't
know your conversion script or the database structure.
Micha -
Non-hex character in a hex string error message
Hi everyone,
I encountered n error message in Illustrator "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string." when trying to open a particular file.
File was originally created on a Windows 7 PC, tried opening file on Mac OS 10.7.5, same Illustrator version 18. Also tried opening in PDF, Distiller, but didn't help.
Did tried to change Illustrator Preferences in both Windows and Mac, following the steps in the TecNote:
http://kb2.adobe.com/cps/500/cpsid_50031.html
When trying to open the file from the File > Open menu, with the keys held down, it did not open a blank file window, neither did it created a duplicate copy in the Finder where the file is located.
The file in question had about 15 artboards, a few embedded images, approx 2.6MB size.
Any suggestions/assistance would be greatly appreciated.
Thank you.Hi Monika,
The file was .ai file, as mentioned earlier, was created in Illustrator ver 18.
Not emailed, stored in the folder, on the Windows PC, not a server. Last saved few days ago, tried to reopen the file from the same computer, but could no longer opened.
No, Illustrator did not crash, just the error message "Acrobat PDF File Format is having difficulties. Non-hex character in a hex string." -
Non-hex character in a hex string
My Illustrator file will not open in Illustrator and I get the "non-hex character in a hex string" window whenever I try to open it. It does open in Acrobat but nothing else. I can't even save it as a pdf file..
Is there any way I can get around that or fix it?karam,
The first thing to try is to use File>Place in a new document and see how much, if anything, is saved this way.
The next thing to try is to repair the file code, which is more difficult. The basics are told in this TechNote, the actual recovery consists of changing/adding/deleting code.
http://kb2.adobe.com/cps/500/cpsid_50031.html -
How to sum space delimited hex values in a string, and do other stuff?
Hello
I am trying to write a Bourne shell script that takes a non-constant-length character string as input, converts each character to hexidecimal value, sums each value, takes the two's complement of the sum, logically ANDS it with FF, and if any of the resultant "nibbles" are a-f, print/save that nibble as A-F, for later display as a two-character-long character string
For example, assume a variable (as in non-constant) length variable $A
A="w04:0;2"
the road that I started down was to define
B=$( echo $A | od -An -t x1 -N"${#A}" )
# for this example, $B=77 30 34 3a 30 3b 32
It's the middle part where I need some magic. What I want to do is add the whitespace-delimited hex values of this string, for this example
C=77+30+34+3a+30+3b+32
so for this example, $C=1b2
then take two's complement of $C; for this example, $TWOS_COMP=ffff ffff ffff ffe4e
and logically AND it with FF; for this example, almost-final answer is 4e
then save final result as uppercase character string variable (for this example, variable's contents would be 4E)
Is what I'm trying to do intuitively obvious to any of you gurus out there, that could rattle off an answer? I'm okay with trashing my approach thus far and trying something totally different, within the constraint that it run inside a Bourne shell script.
Thanx in advance, if anybody can help!I've made progress. I've converted each character of a non-constant-length string $A into a space-delimited string of hex values, added them up, and retained the least significant byte (i.e., the 8 least significant bits). Here's how:
B=$( echo $A | od -An -t x1 -N"${#A}" )
D=0
for C in $B; do
C=0x$C
D=$(($D + $C))
done
D=$(($D & 16#FF))
D=`echo "ibase=10;obase=16;$D" | bc`
The missing piece now is how to take the two's complement of $D. Anybody out there with any ideas on how to handle the two's complement piece inside a Bourne shell?
Thanx -
Hi,
How can i convert character into hex string , for example if i have the data as "testing data", how can i get the hex coded output? Ive tried out using first string to number vi and thennumber to hex conversion vi but i get the answer as 0, can u help me in this?
In short my data is " testing1234okokok" , i want a hex coded output which would be something as "AD87BA......."
Please help
From SubhashWhat coercion dots? There are no coercion dots even without the loop:
Message Edited by smercurio_fc on 02-13-2008 03:12 PM
Attachments:
Example_VI.png 1 KB -
Replace Non-Numeric Characters with a Numeric Character in a String
Hi Guys,
I need to replace all the non-numeric characters (including embedded blanks & hyphen) in a string to a numeric character '1'.
The trailing blanks should not be replaced.
e.g. "P22233344455566" should be changed to "122233344455566"
& "49-1234567 " should be changed to "4911234567 "
Please help.Use [replace|http://help.sap.com/abapdocu_70/en/ABAPREPLACE_IN_PATTERN.htm] with a regular expression to translate any non-numeric character (i.e. any character not between 0 and 9) to 1:
REPLACE ALL OCCURENCES OF REGEX '[^0-9]' IN value WITH '1'.
Cheers, harald
p.s.: In older releases [translate|http://help.sap.com/abapdocu_70/en/ABAPTRANSLATE.htm] would also do the trick, but is more lengthy, because one would need to specify each individual character that should be replaced, e.g.:
TRANSLATE value TO UPPER CASE.
TRANSLATE value USING
' 1_1-1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1r1s1t1u1v1w1x1y1z1'. -
Spliting a string based on Non Printable character
Hi,
i have a requirement where i have to split a String based in non printable character " MYU(ascii: 230);
es: ""This is to test æ raaaaaaaaaaaaaaaaa æ AAA010224544 æ 7118288888 æ
æ is a not printable character and its ascci is 230..
iam getting that string from form how to split it in Java..
Any suggestions...?One of many ways
String initString = "This is to test æ raaaaaaaaaaaaaaaaa æ AAA010224544 æ 7118288888 æ";
String[] tokens = initString.split(String.valueOf((char)230));
for (String string : tokens)
System.out.println(string.trim());
} -
I want to take a series of hex characters in a string control and produce an HDLC string indicator for example if the data string control is 3F27 then the HDLC string indicator is 7E003F2700B57E
"thanks for your help "
Does that mean you figured it out already?
If not, see this thread for some HDLC related code.
http://forums.ni.com/ni/board/message?board.id=170&message.id=146859&query.id=3388#M146859
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Concatenate Hex'04' to text string
Hi
I need to concatenate Hex'04' to text string. How can I use class cl_abap_char_utilities to realize it?
Thanks,
Crystal
Edited by: Crystal Yu on Feb 8, 2008 8:15 PM
Edited by: Crystal Yu on Feb 8, 2008 8:16 PMHello Peter,
use a single TextField and concatenate the string before putting it into the context. FormCalc or JavaScript won't be needed then.
A good way to determine where the problem resides is to create an addition WD based
TextView and display the same data there. If it shows up with data there and with no
data in the form, then the problem resides in the form rather than in the WD context.
Best regards,
Thomas
Maybe you are looking for
-
Can anyone help me? Suddenly (i.e. just a few minutes ago) this problem has appeared. I attempted to update two apps on my iPad. The Terms and Conditions agreement comes up, I read the terms and conditions, I agree to them, I click AGREE, it disap
-
Security Error while invoking Webservice
Hi, We have a BPEL flow that invokes a ADF BC webservice that is running in a different Weblogic instance. Getting the following error on invoke activity that call the ADF BC service. <remoteFault> <part name="summary"> <summary>InvalidSecurity
-
I need a procedure for creating a new user in SAP NW(BPC)
Hi, I am doing Migration project from SAP BPC MS to NW. I don't know how to create a new user in NW. Could you please provide a document to create or add a new user in NW. Thanks and Regards Krishna
-
Profilemanager for windows based computers and android devices
Is there anyway to set up windows based computers or android devices in profile manager? I assume not so is there another way to do this?
-
Building data model using business modeler in demantra
Hello. During this week I've been trying to build a data model using the business modeler but i keep getting an error during the process. My main problem is that I don't really know if i am making the mistake or it is a configuration problem with my