G
George Adams
I'm trying to make a directory, pulling in data from an ODBC database to
make a mail merge. For simplicity, let's just say the template looks
like this:
{ MERGEFIELD "lastname"}, { MERGEFIELD "firstname" }
All well and good. The only problem is that the database stores any
special characters as HTML entities (since the DB is primarily used for
displaying the directory on the web). Thus, the accent characters in
Jose Pinera (over the "e" in "Jose" and "n" in "Pinera") are stored in
the database as:
lastname: Piñera
firstname: José
Now, there are only a few of these, so a few search/replace commands
should be able to convert the HTML entities back into the actual
letters. I can't figure out how to incorporate this into the mail
merge, though. Is it possible to setup my document such that, with a
single push, the mail merge can run and a find/replace function can go
through "lastname" and "firstname", replacing all the HTML entities I
specify with their actual (ISO-8859-1) characters?
Thanks to anyone who can help!
make a mail merge. For simplicity, let's just say the template looks
like this:
{ MERGEFIELD "lastname"}, { MERGEFIELD "firstname" }
All well and good. The only problem is that the database stores any
special characters as HTML entities (since the DB is primarily used for
displaying the directory on the web). Thus, the accent characters in
Jose Pinera (over the "e" in "Jose" and "n" in "Pinera") are stored in
the database as:
lastname: Piñera
firstname: José
Now, there are only a few of these, so a few search/replace commands
should be able to convert the HTML entities back into the actual
letters. I can't figure out how to incorporate this into the mail
merge, though. Is it possible to setup my document such that, with a
single push, the mail merge can run and a find/replace function can go
through "lastname" and "firstname", replacing all the HTML entities I
specify with their actual (ISO-8859-1) characters?
Thanks to anyone who can help!