Reading a special character in VB
I'm trying to translate an AppleScript into VB and have gotten stuck at the point where the script looks to see if the first character of paragraph is a bullet. In AppleScript, "character 1 a string" returns unicode "<25CF>" when the bullet exists, which works just fine. In VB, I'm looking at ...Characters.Item(1).TextContents but getting a long string of integers which is not unicode and not ascii and not anything I can figure out how to work with. Can someone help?
Robert P. Kyle wrote:
So how do you incorporate special characters in a VB search? This doesn't work:
search ("--", False,False,indesign.idSpecialCharacters.idEmDash)
You can't use scripting constant - you need to use InDesign's metacharacter - the same you use in User Interface:
search ("--", False,False,"^_")
Full list is here:
http://livedocs.adobe.com/en_US/InDesign/5.0/help.html?content=WSa285fff53dea4f86173837510 01ea8cb3f-712d.html
or UNICODE value:
search ("--", False,False,"<2014>")
Full list of hex values of meta characters you can find at the end of TaggedText spec pdf - CS4 version is here:
http://help.adobe.com/en_US/InDesign/6.0/indesign_cs4_taggedtext.pdf
robin
www.adobescripts.com
Similar Messages
-
Reading a string containing special character from a result set
My Code....
PrintStream p = new PrintStream(fout);
if (connection == null)
connection = getConnection();
CallableStatement proc = connection.prepareCall("{call testing_read()}");
rs = proc.executeQuery();
while ( rs.next() )
String page2 = rs.getString(1);
System.out.println(page2);
rs.getString(1); is a string value eg. 'Rebekah \n Govender' that is being set in a stored procedure.
The output of my program is :'Rebekah \n Govender' , i need for it to read the special characters, and produce this output :
Rebekah
Govender
Without using a result set , it works fine.
eg.
String page2 = 'Rebekah \n Govender'
System.out.println(page2);
Will give an output of :
Rebekah
Govender
I need to read values from the results set, pls help me someone....
Please help....String page2 = rs.getString(1).replace("\\n", "\n"); When you include source code in your posts, please enclose it in CODE tags. There's a button for that above the input textarea.
ThE-MaRaC wrote:
Hi,
you can try something like this:
import java.io.UnsupportedEncodingException;;
* Main class, manages the complete game
public class Main {
public static void main(String[] args) {
String page2 = "Rebekah \n Govender";
try {
page2 = new String(page2.getBytes("ISO-8859-1"), "ETF-8");
} catch (UnsupportedEncodingException e) {}
System.out.println(page2);
}Regards,
Hercog MarioThat is a disgusting hack which you shouldn't be recommending to anyone, and it's totally irrelevant here anyway. Also, as written, it does absolutely nothing because you misspelled "UTF-8" and you swallowed the exception that would have told you so. -
Special character issue with Adobe Reader 11.03 in hyperlink path
Adobe Reader changes a [ character in a hyperlink path to a % sign, thus changing the path and destroying the link,when opened in version 11.03. This does not happen with 11.01. This is a serious problem for our customers with a critical linked document, because the customers are generall not tech savvy, and categorically refuse workarounds. They will not adjust their Adobe version for fear of security issues. Can this be corrected in a future version of Adobe Reader?
This is the Bridge Forum, try posting in acrobat froum http://forums.adobe.com/community/acrobat
-
Special character issue with Adobe Reader 11.03 Hyperlink path
Adobe Reader changes a [ character in a hyperlink path to a % sign, thus changing the path and destroying the link,when opened in version 11.03. This does not happen with 11.01. I have also seen this with Acrobat X, but not sure which update. This is a serious problem for our customers with a critical linked document, because the customers are generall not tech savvy, and categorically refuse workarounds. They will not adjust their Adobe version for fear of security issues. Can this be corrected in a future version of Adobe Reader?
This is the Bridge Forum, try posting in acrobat froum http://forums.adobe.com/community/acrobat
-
File Adapter - special character in Filename
Hi,
i have a question concerning file adapter.
Scenario: we are polling files via file sender adapter (FTP).
Problem: if the filename contains a special character, an error is thrown with 'The System cannot find the file specified'
Scope: Special character in filename (not in payload)
Installed: XI 3.0 SP 19 on Linux
Questions:
- what FTP implementation does XI use?
- What do i have to check/upgrade to unicode?
- is it an OS problem or an Java problem or a XI problem?
- or is it not possible copiing files with special characters in filename?
Thank you very much in advance.
MichaelHi Michael,
The file/FTP adapter supports both passive and active FTP data connection. You can select the data connection while configuring the adapter.
The file/FTP adapter follows specification RFC 959. The specification can be found on the Internet under www.ietf.org/rfc/rfc0959.txt.
For FAQs about the file/FTP adapter, see SAP Note 821267. Please note that you'll need an account to log in on service.sap.com.
Question: How are you specifiying the file name? i.e. Are you using placeholders, like ?, *, *.txt, etc ?
If there's a problem with the filenames, then it should be a problem in the JAVA implementation of the adapter I assume. So you could for instance build your own adapter extension to by-pass that problem.
Just for your information; I haven't encounter a problem with filenames in other projects.
Good luck! -
How can I use Greek symbols in a Pages text? Greek symbols are not included in the special character collection.
I need to import for example a sigma from Word or Adobe illustrator and then Pages can recognise it. I can not find it from within Pages.Special character palette from the edit menu does have sigmas under European ... > Greek ...
You can do a search at the bottom of the Special Character palette. Double click on the greek capital letter sigma. You will get a lot of sigmas. -
In some scenarios HL7 message is coming with special character ‘’ and HL7 dis-assembler escaping this character with “”. But while sending out (pass thru pipeline but orchestration trying to persist here at last sendshape.) from orchestration
this message failing with the error “Exception occurred when persisting state to the database.”
As per the analysis , Orchestration is unable to convert to xml document from a
XLANGMessage because of this special character. We have tried to call custom .net class with following code and its failing here as well (I think orchestration also trying to do same way and failing with the message and failing with same error.).
public void ProcessRequest(XLANGMessage reqMessage)
XmlDocument xmlDocument = (XmlDocument)reqMessage[0].RetrieveAs(typeof(XmlDocument)); It is failing here with the error
“ ', hexadecimal value 0x10, is an invalid character. Line 1, position 1865. “
Note : Please find the special character in the attachment circled in red color.Hi ,
Please find the xml and the screenshot.
<OBX_ObservationResult>
<OBX_1_SetIdObx>3</OBX_1_SetIdObx>
<OBX_2_ValueType>TX</OBX_2_ValueType>
<OBX_3_ObservationIdentifier>
<CE_0_Identifier>P.112</CE_0_Identifier>
<CE_1_Text>Where pt. will be transported to \T\ where famly can wait:</CE_1_Text>
</OBX_3_ObservationIdentifier>
<OBX_4_ObservationSubId />
<OBX_5_ObservationValue>Y</OBX_5_ObservationValue>
<OBX_6_Units>
<CE_0_Identifier />
</OBX_6_Units>
<OBX_7_ReferencesRange />
<OBX_8_AbnormalFlags />
<OBX_9_Probability />
<OBX_10_NatureOfAbnormalTest />
<OBX_11_ObservationResultStatus>N</OBX_11_ObservationResultStatus>
</OBX_ObservationResult> -
Error wirh release of the requets Special character "_" in generic key
Hello
I am trying to release the request, this reques was generated to installation the baseline for Peru but I got this message:
Key messages: TABU TFAWC 200SAPLCATS 2100TCA
Special character "_" in generic key
Special character "_" in generic key
Message no. TK287
Diagnosis
The generic key 200SAPLCATS 2100TCA was entered for the object TFAWC. All keys that match up to the asterisk are to be transported.
The key cannot have any special characters before the asterisk, since they are interpreted in different ways by different database systems.
The key contains the special character _.
System Response
The entry is rejected.
Procedure
Extend the generic entry, or specify all keys individually
Any sugstion for this message?
thanks
DannyHi Danny,
Could you resolve issue Message no. TK078, I'm config SD and when i assign division and dis.channel to sales org those action does not show error but when i check request consistensy in se03 i have below error.
=====================================================
Object TDAT OVXA has object function "K", but no key
Message no. TK078
Diagnosis
The request/task cannot be saved because an object entry with function K
does not have a key.
System Response
The system did not save the entry.
The cursor appears on the incorrect entry in the editor.
Procedure
Press Enter once. This branches to the object list in the editor and
positions the cursor on the incorrect object entry.
Correct the object function or enter keys for the object entry.
============================================
I had follow procedure but it do nothing.
Anybody can help Pls !
Thanks and Best regards. -
Special character and htp.p()
I am trying to use PL/SQL procedure to present my customized item.
If user type in secial character, e.g. single quote ', in the attribute, I got this error on the page:
Error 30584: DBMS_SQL has raised an unhandled exception. ORA-06550: line 1, column 327: PLS-00103: Encountered the symbol "03" when expecting one of the following: . ( ) , * @ % & = - + < / > at in is mod not rem <> or != or ~= >= <= <> and or like between ||
Is there a procedure I can call to encode the special character?
thanksHi - thanks very much the reply. I will bear your suggestions in mind in future as they are very useful.
I got around the problem I was having by doing the following:
The line of JavaScript I wanted to output to the page was:
document.write('<img src=" '+ns_l+' " width="1" height="1" alt="*" />');}
And I achieved this by using the following PL/SQL:
htp.p('document.write('||'''<img src="'''||'+ns_l+'||'''" width="1" height="1" alt="*" />'''||');}'); -
Special character Validation: error
HI Guys,
I wrote a validation to restict the use of special chracters.
Its a formula based validation, both REAL TIME and BATCH, on the Node.
HasCharacters(Custom.EPMA_Alias, ["]).
However, when I go to put an Alias on a member, it tells me there is a special character in this, but there is not.
I also tried HasCharacters(PropValueCustom.EPMA_Alias0, ["]) with same results.
I also need to add the following characters:
|
Thank you for all your help!.Hi,
DRM will not support the syntax ["], instead try somethinug like this for your validation logic-
And(
Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),|,,T))),
Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),",,T))),
Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),%,,T))),
Equals(Integer,Length(PropValue(Custom.Prop)),Length(ReplaceStr(PropValue(Custom.Prop),*,,T))) -
Biztalk error if "&" special character is used from Oracle Database
There is an error when system was received data form Oracle database. The data format is including "&"....etc special character. Becuase of the error appear between Oracle database and receive port. I can't do anything in Biztalk program to
encode the message. Does any way to do encoding when biztalk receive data?
xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'ECT.TOSToEDB.orcWorkingTable(7e2c77ec-adb6-5790-29ad-835ec8374c1d)'.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: 8eb4cb36-82b2-4d34-9b45-64b8aba23758
Shape name:
ShapeId: 09bc980e-3040-4238-a838-f3606294effe
Exception thrown from: segment 1, progress 84 Inner exception: An error occurred while parsing EntityName. Line 4, position 112.
Exception type: XmlException
Source: System.Xml
Target Site: Void Throw(System.Exception) The following is a stack trace that identifies the location where the exception occured
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseEntityName()
at System.Xml.XmlTextReaderImpl.ParseEntityReference()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at ECT.TOSToEDB.orcWokingTableCheck.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.There are 5 special characters which in xml & < > " ' if the Oracle fields contain any of those characters it will cause invaild xml.
This can be solved at the oracle side be replacing the special characters by it's html encode equivalent, so & becomes & , I think the best way to solve it
is to make a custom pipeline component and translate the special characters there.
There is my Send Port Properties. Do you mean the default biztalk pipeline component ("XML Receive") cannot translate any special characters? -
Unquoted special character error
Am reading data from a file and parsing through it using StringTokenizer. I am putting the data into DB2 tables and therefore need to set the integer and fraction count for decimal numbers so they won't abend the program if they are over the DB2 setting. I am calling an internal method with the following line:
pstmt_master.setDouble(23, formatDecimal(token, decForm));
where token is the value to interpret and decForm is the pattern to apply, in this case it is:
"###########0.####;-###########0.####"
The method that is called is:
public double formatDecimal(String numStr, String format) {
NumberFormat nf = NumberFormat.getInstance(Locale.US);
double intdbl = 0;
if (nf instanceof DecimalFormat) {
ParsePosition pos = new ParsePosition(0);
nf.setMaximumIntegerDigits(12);
nf.setMinimumIntegerDigits(0);
nf.setMaximumFractionDigits(4);
nf.setMinimumFractionDigits(0);
DecimalFormat df = (DecimalFormat)nf;
df.applyPattern(numStr);
Double db = new Double(numStr);
double dbl = db.doubleValue();
BigDecimal bd = new BigDecimal(dbl);
db = new Double(df.format(bd.doubleValue()));
intdbl = db.doubleValue();
return intdbl;
I am trimming the value (token), and for the purposes of debugging this problem have done a println on the value which is the number just before the error below. Can anyone offer any help as to why I am getting this error?
By the way, this is not the first value passed through the method, it successfully handles about 10 values before abending on this value.
51050
java.lang.IllegalArgumentException: Unquoted special character '0' in pattern "51050"
at java.text.DecimalFormat.applyPattern(DecimalFormat.java:1334)
at java.text.DecimalFormat.applyPattern(DecimalFormat.java:1208)
at JavaAgent.formatDecimal(JavaAgent.java:758)
at JavaAgent.NotesMain(JavaAgent.java:225)
at lotus.domino.AgentBase.runNotes(AgentBase.java:161)
at lotus.domino.NotesThread.run(NotesThread.java:203)I'm thinking that this line:
df.applyPattern(numStr);should read
df.applyPattern(format);You appear to be passing the number as the pattern.
Tim -
How do I get Special character Euro symbol € to display ?
Hi,
How do I get the euro symbol € to display in Flash from
PHP file created in DW ?. It does not display it properly. I have
simplified the PHP code I have is:
<?php
$msgtoflash = "This is the Euro Symbol €";
print ("&Databaseinfo=$msgtoflash");
?>
The € is a special character code for HTML.
If I use the $ or £ symbols it works perfectly but not
€ ?
Thanks,
Paulmaith wrote:
> Im using Actionscript2. I had placed a query in Flash in
"General
> Discussions", before I came on the Dreamweaver Forum,
but got no reply.
The way to get the euro symbol to display in Flash is to use
XML. I have
tested this, and it works:
euro.php
<?php
header('Content-type: text/xml');
echo '<root>
<elem>This is the euro symbol:
€</elem>
</root>';
?>
ActionScript 2.0 to display the value of <elem> in a
dynamic text field
called myText:
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = handleLoad;
myXML.load('
http://localhost/test/euro.php');
function handleLoad(success) {
if (success) {
var theRoot:XMLNode = this.firstChild;
myText.text = theRoot.firstChild.firstChild.nodeValue;
} else {
myText.text = 'Not working :(';
Handling XML in ActionScript 2.0 is like poking needles in
your eyes,
but it's the only way I have been able to get the euro symbol
from an
external source into a Flash movie.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
How to Eliminate Special Character in SQL LOADER Script
How to eliminate special character from SQL LOADER script file which suppose not to insert in TABLE
example.CSV lile like this
<ABC/ , 7747>
<DEF/ , 7763>
<NEW/ , 7779>
<OLD/, 7795>
I have to remove < > and / character at the time of loading into table. How It could be done. It is not possible to remove < , > , / character manually from CSV fileOn Unix/Linux that's very easy, on Windows... I don't know...
$ cat myfile.csv
<ABC/ , 7747>
<DEF/ , 7763>
<NEW/ , 7779>
<OLD/, 7795>
$ tr -d "\057\074\076" <myfile.csv >outfile.csv
$ cat outfile.csv
ABC , 7747
DEF , 7763
NEW , 7779
OLD, 7795
$ -
Handle special character in mapping
Hi Experts,
I have requirement to handle special character in mapping.
ö this tiny special charcter comes in I/O file and we cant avoid.
Refering the given blog: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
FILE --- XI --- FILE where Source and target structures are same, using 1:1 mapping with FCC at both the side..
Input/Output files consist of special charcters ö due to which getting error in mapping.
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0x13(:main:, row:8237, col:22) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java(Compiled Code))
Do we required Java mapping? Is there any other way to acheive wtihout using Java mapping?
How can we hadle in mapping?
Sameerö this tiny special charcter comes in I/O file and we cant avoid.
Refering the given blog: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken]
What has an ö to do with an ampersand?
Assign the correct encoding to the file adapter channel.
Maybe you are looking for
-
HT204053 Can iTunes Match be associated with another Apple ID?
I have to Apple ID accounts (although I'm not sure how that happened). I've purchased iTunes Match with one account. Now I'd like to put everything under another existing account to make my life easier. When I try to turn on iTunes Match from that ac
-
Photoshop crashes when selecting File / Automate / Batch
Photoshop users still need a fix for Photoshop crashing whenever they select Batch. I understand that Adobe staff has chosen to blame scanner drivers for the problem. And, I've read the discussions thru last year (very long and boring when all you wa
-
Airport Express or Airport Extreme?
Hey, I'm in need of a wireless router for my new place. Now that the Express uses 'n', it's become a viable option for me. My only question is, which one has better range? I looked through specs and saw that Radio Output Power is 20 dBm (nominal) for
-
Hi, When moving items up or down in the navigation of a workset, the save button remains greyed. However, if you make a change and close and reopen the workset the changes are there. This can be bad if you make an inadvertent change without knowing
-
Hi, in forms 10g , it's possible to change the role for user REVOKE role_name FROM :USERNAME;