Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:module': 0.04; 'subject:Python': 0.05; 'correspond': 0.07; 'received:verizon.net': 0.07; 'terry': 0.07; 'python': 0.08; '5.3.': 0.09; 'path.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:python': 0.10; 'subject:application': 0.15; '(system': 0.16; '2.7.2': 0.16; 'language)': 0.16; 'mismatch': 0.16; 'reedy': 0.16; 'subject: \n ': 0.16; 'subject:folder': 0.16; 'subject:load': 0.16; 'subject:unicode': 0.16; 'wrote:': 0.16; 'language': 0.17; 'jan': 0.19; 'header:In-Reply-To:1': 0.22; 'settings': 0.24; 'module': 0.26; 'pm,': 0.26; 'load': 0.26; 'import': 0.27; 'tried': 0.27; 'example': 0.28; 'error': 0.30; 'sort': 0.32; 'header:User- Agent:1': 0.33; 'to:addr:python-list': 0.33; 'header:X-Complaints- To:1': 0.34; 'folder': 0.35; 'problem.': 0.36; 'url:python': 0.36; 'but': 0.37; 'received:org': 0.37; 'easiest': 0.38; 'subject:with': 0.38; 'url:docs': 0.39; 'url:org': 0.39; 'help': 0.39; 'subject:: ': 0.39; 'change': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; 'link': 0.63; 'subject:. ': 0.64; '8bit%:100': 0.69; 'skip:\xd0 20': 0.77; 'ascii.': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Python embeded in c++ application. Can't load python module if application is placed in folder with unicode chars. Date: Thu, 02 Feb 2012 19:26:27 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328228805 news.xs4all.nl 6866 [2001:888:2000:d::a6]:55732 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19814 On 2/2/2012 6:37 PM, =D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9 =D0=92=D0=BB=D0= =B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87 wrote: > Hello. Please help me to import python module in my application that > has python 2.7.2 embeded. > I tried example from this link > http://docs.python.org/extending/embedding.html#embedding-python-in-c > paragraph 5.3. > If i place program in folder D:\temp\test_python\test_python=C3=A6vnes > p=C3=A5\Debug I will get error - Failed to load "multiply". > My localization settings (system language) don't correspond the chars' > language used in path. Easiest is to change your folder name to all ascii. This sort of thing=20 will work better in future 3.x, but even then, a mismatch between=20 encodings is a problem. --=20 Terry Jan Reedy