PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

lots compile error occurred when compiling PDFSharp

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
imgen



Joined: 20 Mar 2009
Posts: 2

PostPosted: Fri Mar 20, 2009 12:47 pm    Post subject: lots compile error occurred when compiling PDFSharp Reply with quote

hundreds of error CS1010: Newline in constant and error CS1012: Too many characters in character literal happened when compiling PDFSharp library. My IDE is vs2008. It seems like it is those unicode character in Chars.cs, XColorResourceManager.cs and PdfDictionary.cs cause this problem. But I don't know how to fix it. Can somebody please help me?
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Fri Mar 20, 2009 2:02 pm    Post subject: Reply with quote

I just checked "XColorResourceManager.cs": it contains no unicode characters. VS2008 shows encoding as "1252" and it compiles correctly.

Which encoding does your VS show for XColorResourceManager.cs?
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
imgen



Joined: 20 Mar 2009
Posts: 2

PostPosted: Fri Mar 20, 2009 4:36 pm    Post subject: About the encoding Reply with quote

I don't know. But it's got be a problem of encoding cause there are some very strange characters in the file. And I don't know how to check the current encoding of the file or how to change the encoding of the file in VS. Can you tell me? Forgive my lack of knowledge and experience.
Back to top
View user's profile Send private message
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Fri Mar 20, 2009 5:03 pm    Post subject: Reply with quote

Open the file in VS 2008 and look at File => Advanced Save Options.

These .cs files are plain text files (they have no encoding).
I presume the default encoding of your computer is used. Default should be 1252 in the western world, therefore it works for many people.
If the files had the correct UTF encoding it should work for all people (that is our mistake).

I can send you UTF-encoded versions of those files if you send me your e-mail address via PM.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
Thomas Hoevel



Joined: 16 Oct 2006
Posts: 387
Location: Cologne, Germany

PostPosted: Mon Mar 23, 2009 8:03 am    Post subject: Reply with quote

You should be able to correct the problem yourself:
When you select File -> Open -> File... in VS 2008, there is a small triangle (pointer) beside the Open button.
Select Open With from the menu, then select CSharp Editor with Encoding.

The files that cause problems will all open with "Western European (Windows) - Codepage 1252".

Then select File -> Advanced Save Options and select "Unicode (UTF-8 with signature) - Codepage 65001" and click OK.

The default setting for opening files is "auto detect". Maybe there's something different in your operating system that affects how this auto detection works.
_________________
Regards
Thomas Hoevel
PDFsharp Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com