how it works: 1. write to pdf from mysql database 2. attach the pdf file then send to recipients additional info settings: msql collation: utf8_unicode_ci for pdf email: $doc2->setCharset('ISO-8859-1'); $doc2->setEmailCharset('ISO-8859-1'); so far this works properly when sent to recipients except for the Norwegian characters which displays in funny way. for example: turns out to be Æ. same as the other. i want and the client wants the information to display as is to the pdf. the database will save as so far , but when retrieved from database and write it to pdf file, it turns out different. what should i do to make it display marfret tracking properly? hope you guys answer back in english. thanks in advance.
Feed: Kaffemaskin-review: Melissa kaffeputemaskin hos Europris
I'd say you need to convert the string you got from the mysql database from utf8 into iso before sending it to the pdf object. "The database will save as so far" marfret tracking <- how can you tell? Your client marfret tracking that talks to the database probably marfret tracking has some logic that will display the UTF-8 info correctly, so as ... I think.
I am pretty sure Æ for is what you get if your database is setup as latin_1 or something like that, while you input things as UTF-8, and then try to change either. Had some similar trouble marfret tracking when I switched servers on my blog, where the old DB was latin1, the new was utf-8, and both the new and the old wp-config was setup with UTF-8. The workaround was as simple as switching around in WP-config - not really perfect, but it works.
Marlyn
had it working. pdf header should be set to utf-8, not ISO. but the funny thing is the spacing of character are not consistent. there is a random space in between the words. - in the pdf but in the contents of mail, i get ?? in replacement of and other special characters... MIME?
Well sorry, but it's the same issue. The solution you picked / found to work is *a* solution, not *the* solution. From your second question, I concluded that you should read up on and understand what character encoding is. Let me google that for you
Lignende tr der Tr d Tr d startet av Forum Svar Siste innlegg Norwegian affiliate Tonny Kluften Affiliate-programmer 9 13th September 2012 09:29 Norwegian bruker jo ett spr k for alle Knut Generell snakk og svada 2 23rd May 2008 05:46 Sliter med overf re database til en annen database Gomlers Webutvikling 7 27th February 2008 21:50 Norwegian ute av Tradedoubler? Kenneth Dreyer Tradedoubler 17 8th February 2008 09:36
Tilbakelenk Tilbakelenke adresse Om Tilbakelenker Bokmerke & Deling Digg denne tr den! Legg inn tr d del.icio.us Legg til som bokmerke p Technorati Kudos denne tr den
No comments:
Post a Comment