DRoberts Posted August 8, 2011 Posted August 8, 2011 Hi, I've got a problem with some data coming in with a line break I can't remove. When viewed using GetAsCSS it gives the following code & # 8232 ; rather than the expected <br> character of standard line breaks. This is a problem as the record is not parsing in XML so I need a away of removing it in FM. Has anyone come across this problem and do you know a way of removing this from a text string? I've attached a single record which I've copied from a much larger database. This problem is popping up randomly across a number of different fields - and is really difficult to spot when simply viewing the records I can use substitute & # 8232 ; to remove the code within the returned GetAsCSS calculation - but how do I then return this to be a standard text file? hope someone can help kind regards David
comment Posted August 8, 2011 Posted August 8, 2011 Try = Substitute ( YourField ; Char ( 8232 ) ; ¶ )
DRoberts Posted August 9, 2011 Author Posted August 9, 2011 Hi Comment, this is giving a "?" in the resultant calculation field - I've checked I'm returning the result as text (also tried as number) But no joy best wishes David
comment Posted August 9, 2011 Posted August 9, 2011 Can you attach an example file showing the problem?
DRoberts Posted August 10, 2011 Author Posted August 10, 2011 Hi Comment, I've attached a small sample - one record which has an example of this character. My current work round is also included where I use GetAsCSS to make the character "visible" then perform a substitution on the CSS version back to plain text. Many thanks in advance David Character Problem.fp7.zip
comment Posted August 10, 2011 Posted August 10, 2011 Does this work for you? CharacterFix.zip BTW, I'd suggest you explore Filemaker's built-in XML exporting option.
DRoberts Posted August 12, 2011 Author Posted August 12, 2011 Thanks for the fix - I'm not sure why I was getting the question mark result, but this solves my problem (will investigate further no I can see a master at work). Re: XML exporting - working on this at the moment as I'm getting fed up of hard coding the tag markers many thanks David
Recommended Posts
This topic is 4885 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now