Anuviel Posted June 23, 2007 Posted June 23, 2007 I have a plain text field that I use to store HTML code in. I usually paste it from Dreamweaver and or sometimes Frontpage. The thing is that when I paste it into the field it adds couple of characters at the end; couple of rows of what looks like small squares. I thought it was some add-on from the DM or FP but it is not, I tried it on couple of different computers and with different HTML and it always happens. Any idea why it is happening or what I could do to fix it?
Genx Posted June 23, 2007 Posted June 23, 2007 Try copying to notepad.exe then from there to FileMaker -- if you still get the squares at the end then its not front page or Dreamweaver (could you just check first, then i'll go into possible solutions).
Anuviel Posted June 23, 2007 Author Posted June 23, 2007 Thanks, you are right. It was DW. Why would it do that? I tested as follows: Opened DW and copied the HTML Opened FM and pasted - the squares showed up Opened NP and pasted - no squares, selected all and copied again Pasted into FM and no squares showed up Any idea why it is happening - takes time to delete squares when doing a lot of records.
Genx Posted June 23, 2007 Posted June 23, 2007 No clue, i find it just happens, I think that dreamweaver plants special chars all over the place so it know's what it's editing... that or when you select to copy the code, you are also copying the actual table structure... As for a solution, though i'm not sure it will work, Try setting your field to auto enter, replace existing: Substitute( YourField ; "TheSquareCharHere" ; "" )
Anuviel Posted June 23, 2007 Author Posted June 23, 2007 Thanks, will try it out - will post when I test it out.
AudioFreak Posted June 23, 2007 Posted June 23, 2007 (edited) That's good to know especially considering how so much is headed to or already using the web. I have only seen the squares when pasting text from Generic Cadd(apple) or when printing from it on certain printers. I always assumed it was a font issue. I wonder what the actual culprit is. Michael Edited June 23, 2007 by Guest
Anuviel Posted June 23, 2007 Author Posted June 23, 2007 Tried the calculation recommended by Genx - could not do it as when I tried to paste the square char I got "" - no chars in between. I cannot paste it here as well - I copied it and have the paste option when I right click however when I click on it nothing gets pasted. Here is the small gif of how it looks.
Genx Posted June 23, 2007 Posted June 23, 2007 Can you post an FM file with the content in the text box?
Anuviel Posted June 23, 2007 Author Posted June 23, 2007 Will do, in an 1 hrs about, office is closing for the weekend, good thing I got remote access, might be even sooner, depending on traffic.
Anuviel Posted June 23, 2007 Author Posted June 23, 2007 OK., here is the file. I just opened DW and copied the HTML that DW auto generates one you hit new button. I get a lot of squares. It can be seen on the layout called ProductsDescription. Please disregard the file, it is my first real db in FM. A-SYS.zip
Fenton Posted June 23, 2007 Posted June 23, 2007 I can't tell you if it's the same on a PC, but on my Mac that file ends with 740 ASCII 0 characters, which is a control character; not a good thing to put into FileMaker, IMHO. And I can't seem to Find/Replace it either.
Anuviel Posted June 23, 2007 Author Posted June 23, 2007 Thanks, the thing is if you saw my file I use the text field to store html description of my item which i copy from DW once I make it. If I need to copy and paste it to notepad and then to FM in order to not get the chars, I'll do it but it just does not seem practical as it creates an extra step.
comment Posted June 23, 2007 Posted June 23, 2007 I think you could put a specimen of the character in a global field, and use that in a calculation to substitute it out. That is assuming it's always the same control character.
Genx Posted June 23, 2007 Posted June 23, 2007 ... or use a filter in case that character isn't the same: Filter( yourTextFieldHere ; "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890`~!@#$%^&*()_+=-[];',./{}|:"<>? " )
Recommended Posts
This topic is 6422 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